From bb6bd905c20473d153fd5f43f77f534fa0eb6409 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 6 Mar 2023 15:40:52 -0600 Subject: Fix: fetch follows before everything else to avoid rendering follow buttons wrongly --- src/state/models/me.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/state/models/me.ts b/src/state/models/me.ts index 451d562a4..0f3acc70b 100644 --- a/src/state/models/me.ts +++ b/src/state/models/me.ts @@ -97,17 +97,17 @@ export class MeModel { } }) this.mainFeed.clear() - await Promise.all([ - this.mainFeed.setup().catch(e => { - this.rootStore.log.error('Failed to setup main feed model', e) - }), - this.notifications.setup().catch(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) - }), - ]) + await this.follows.fetch().catch(e => { + this.rootStore.log.error('Failed to load my follows', e) + }), + await Promise.all([ + this.mainFeed.setup().catch(e => { + this.rootStore.log.error('Failed to setup main feed model', e) + }), + this.notifications.setup().catch(e => { + this.rootStore.log.error('Failed to setup notifications model', e) + }), + ]) this.rootStore.emitSessionLoaded() } else { this.clear() -- cgit 1.4.1