use user.handle response from getProfile, not getSession (#1165)

This commit is contained in:
Eric Bailey
2023-08-15 11:59:34 -05:00
committed by GitHub
parent 4d953f0504
commit a3af2a2b85
+1 -1
View File
@@ -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 {