Fix: fetch follows before everything else to avoid rendering follow buttons wrongly
parent
e069bde75c
commit
bb6bd905c2
|
@ -97,6 +97,9 @@ export class MeModel {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.mainFeed.clear()
|
this.mainFeed.clear()
|
||||||
|
await this.follows.fetch().catch(e => {
|
||||||
|
this.rootStore.log.error('Failed to load my follows', e)
|
||||||
|
}),
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
this.mainFeed.setup().catch(e => {
|
this.mainFeed.setup().catch(e => {
|
||||||
this.rootStore.log.error('Failed to setup main feed model', e)
|
this.rootStore.log.error('Failed to setup main feed model', e)
|
||||||
|
@ -104,9 +107,6 @@ export class MeModel {
|
||||||
this.notifications.setup().catch(e => {
|
this.notifications.setup().catch(e => {
|
||||||
this.rootStore.log.error('Failed to setup notifications model', e)
|
this.rootStore.log.error('Failed to setup notifications model', e)
|
||||||
}),
|
}),
|
||||||
this.follows.fetch().catch(e => {
|
|
||||||
this.rootStore.log.error('Failed to load my follows', e)
|
|
||||||
}),
|
|
||||||
])
|
])
|
||||||
this.rootStore.emitSessionLoaded()
|
this.rootStore.emitSessionLoaded()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue