use user.handle response from getProfile, not getSession (#1165)
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user