about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-03-06 15:40:52 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-03-06 15:40:52 -0600
commitbb6bd905c20473d153fd5f43f77f534fa0eb6409 (patch)
tree4610343bba55c78e5009e586e0b850a03ee34a76
parente069bde75c0a1ee18a2c226ebc21e193acee9e0e (diff)
downloadvoidsky-bb6bd905c20473d153fd5f43f77f534fa0eb6409.tar.zst
Fix: fetch follows before everything else to avoid rendering follow buttons wrongly
-rw-r--r--src/state/models/me.ts22
1 files changed, 11 insertions, 11 deletions
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()