about summary refs log tree commit diff
path: root/src/state/models/my-follows.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-03-19 17:30:58 -0500
committerPaul Frazee <pfrazee@gmail.com>2023-03-19 17:30:58 -0500
commit7a754850bc71a46f4b198e942b7427536b253587 (patch)
tree0be63117e521f95014689684f519085e3ccc5c2e /src/state/models/my-follows.ts
parent6578d2bfadaa0aa937a5467973f4c44505634afe (diff)
downloadvoidsky-7a754850bc71a46f4b198e942b7427536b253587.tar.zst
Go to whats-hot by default if you have no follows
Diffstat (limited to 'src/state/models/my-follows.ts')
-rw-r--r--src/state/models/my-follows.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/state/models/my-follows.ts b/src/state/models/my-follows.ts
index 732c2fe73..bf1bf9600 100644
--- a/src/state/models/my-follows.ts
+++ b/src/state/models/my-follows.ts
@@ -35,6 +35,12 @@ export class MyFollowsModel {
   // public api
   // =
 
+  clear() {
+    this.followDidToRecordMap = {}
+    this.lastSync = 0
+    this.myDid = undefined
+  }
+
   fetchIfNeeded = bundleAsync(async () => {
     if (
       this.myDid !== this.rootStore.me.did ||