From a3af2a2b850f5561d5a0b9504e0b6ea9aca07cb7 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 15 Aug 2023 11:59:34 -0500 Subject: use user.handle response from getProfile, not getSession (#1165) --- src/state/models/me.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/state/models/me.ts b/src/state/models/me.ts index 59d79f056..e46c0e80f 100644 --- a/src/state/models/me.ts +++ b/src/state/models/me.ts @@ -104,7 +104,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 +143,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 { -- cgit 1.4.1