diff options
Diffstat (limited to 'src/state/models/me.ts')
-rw-r--r-- | src/state/models/me.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/state/models/me.ts b/src/state/models/me.ts index ea35cd028..077c65595 100644 --- a/src/state/models/me.ts +++ b/src/state/models/me.ts @@ -11,6 +11,8 @@ export class MeModel { displayName: string = '' description: string = '' avatar: string = '' + followsCount: number | undefined + followersCount: number | undefined mainFeed: FeedModel notifications: NotificationsViewModel follows: MyFollowsModel @@ -90,10 +92,14 @@ export class MeModel { this.displayName = profile.data.displayName || '' this.description = profile.data.description || '' this.avatar = profile.data.avatar || '' + this.followsCount = profile.data.followsCount + this.followersCount = profile.data.followersCount } else { this.displayName = '' this.description = '' this.avatar = '' + this.followsCount = profile.data.followsCount + this.followersCount = undefined } }) this.mainFeed.clear() |