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-06 15:34:22 -0600
committerGitHub <noreply@github.com>2023-03-06 15:34:22 -0600
commit36791e68b3214cab9714a29d40fd7ecae2794c5e (patch)
tree47d5703595de08c5e5eff874285ae47b7a2a0427 /src/state/models/my-follows.ts
parent74c30c60b8b5e68176b1447524db7e725f75a372 (diff)
downloadvoidsky-36791e68b3214cab9714a29d40fd7ecae2794c5e.tar.zst
Onboarding tweaks (#272)
* Small fix to side menu rendering

* Change onboarding to use an explicit 'is onboarding' mode to more clearly control the flow

* Add a progress bar to the welcome banner

* Dont show the 'unfollow button' on posts in weird times (close #271)

* Improve the empty state of the feed

* Only suggest recent posts
Diffstat (limited to 'src/state/models/my-follows.ts')
-rw-r--r--src/state/models/my-follows.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/state/models/my-follows.ts b/src/state/models/my-follows.ts
index c1fba1352..732c2fe73 100644
--- a/src/state/models/my-follows.ts
+++ b/src/state/models/my-follows.ts
@@ -72,6 +72,10 @@ export class MyFollowsModel {
     return !!this.followDidToRecordMap[did]
   }
 
+  get numFollows() {
+    return Object.keys(this.followDidToRecordMap).length
+  }
+
   get isEmpty() {
     return Object.keys(this.followDidToRecordMap).length === 0
   }