diff options
Diffstat (limited to 'src/state/models/me.ts')
-rw-r--r-- | src/state/models/me.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/state/models/me.ts b/src/state/models/me.ts index 59d79f056..186e61cf6 100644 --- a/src/state/models/me.ts +++ b/src/state/models/me.ts @@ -52,6 +52,8 @@ export class MeModel { this.mainFeed.clear() this.notifications.clear() this.follows.clear() + this.rootStore.profiles.cache.clear() + this.rootStore.posts.cache.clear() this.did = '' this.handle = '' this.displayName = '' @@ -104,7 +106,6 @@ export class MeModel { this.rootStore.log.debug('MeModel:load', {hasSession: sess.hasSession}) if (sess.hasSession) { this.did = sess.currentSession?.did || '' - this.handle = sess.currentSession?.handle || '' await this.fetchProfile() this.mainFeed.clear() /* dont await */ this.mainFeed.setup().catch(e => { @@ -144,6 +145,7 @@ export class MeModel { this.displayName = profile.data.displayName || '' this.description = profile.data.description || '' this.avatar = profile.data.avatar || '' + this.handle = profile.data.handle || '' this.followsCount = profile.data.followsCount this.followersCount = profile.data.followersCount } else { |