Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

setup `isAuthenticatedUser` in profileUiModel inside an action (#1272)

authored by

Ansh and committed by
GitHub
7410bcd8 c6f32186

+5 -3
+5 -3
src/state/models/ui/profile.ts
··· 1 - import {makeAutoObservable} from 'mobx' 1 + import {makeAutoObservable, runInAction} from 'mobx' 2 2 import {RootStoreModel} from '../root-store' 3 3 import {ProfileModel} from '../content/profile' 4 4 import {PostsFeedModel} from '../feeds/posts' ··· 228 228 .setup() 229 229 .catch(err => this.rootStore.log.error('Failed to fetch feed', err)), 230 230 ]) 231 - this.isAuthenticatedUser = 232 - this.profile.did === this.rootStore.session.currentSession?.did 231 + runInAction(() => { 232 + this.isAuthenticatedUser = 233 + this.profile.did === this.rootStore.session.currentSession?.did 234 + }) 233 235 this.algos.refresh() 234 236 // HACK: need to use the DID as a param, not the username -prf 235 237 this.lists.source = this.profile.did