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

zio/stable
Eric Bailey 2023-08-15 11:59:34 -05:00 committed by GitHub
parent 4d953f0504
commit a3af2a2b85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,6 @@ export class MeModel {
this.rootStore.log.debug('MeModel:load', {hasSession: sess.hasSession}) this.rootStore.log.debug('MeModel:load', {hasSession: sess.hasSession})
if (sess.hasSession) { if (sess.hasSession) {
this.did = sess.currentSession?.did || '' this.did = sess.currentSession?.did || ''
this.handle = sess.currentSession?.handle || ''
await this.fetchProfile() await this.fetchProfile()
this.mainFeed.clear() this.mainFeed.clear()
/* dont await */ this.mainFeed.setup().catch(e => { /* dont await */ this.mainFeed.setup().catch(e => {
@ -144,6 +143,7 @@ export class MeModel {
this.displayName = profile.data.displayName || '' this.displayName = profile.data.displayName || ''
this.description = profile.data.description || '' this.description = profile.data.description || ''
this.avatar = profile.data.avatar || '' this.avatar = profile.data.avatar || ''
this.handle = profile.data.handle || ''
this.followsCount = profile.data.followsCount this.followsCount = profile.data.followsCount
this.followersCount = profile.data.followersCount this.followersCount = profile.data.followersCount
} else { } else {