Fix user profile cache persisting over logout/login cycle

This commit is contained in:
Mr. Stallion 2020-10-04 13:13:29 -05:00
parent 196eddbdb4
commit 3f2d3bfcb1
1 changed files with 5 additions and 1 deletions

View File

@ -213,8 +213,12 @@
await methods.fieldsGet();
if ((this.selfCharacter === undefined) && (Utils.settings.defaultCharacter >= 0))
if (
((this.selfCharacter === undefined) && (Utils.settings.defaultCharacter >= 0))
|| (_.get(this.selfCharacter, 'character.name') !== core.characters.ownCharacter.name)
) {
due.push(this.loadSelfCharacter());
}
if((mustLoad) || (this.character === undefined))
due.push(this._getCharacter(skipCache));