diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-04-19 20:11:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-19 20:11:10 -0500 |
commit | 04e0ebe8fc4ec32501cc4138e0357308a171807c (patch) | |
tree | 23b6b56aa5517796f3352d59ca47aa4804270a39 /src/view/shell/bottom-bar/BottomBar.tsx | |
parent | b24ba3adc93cf940eb936309ae73a2c205eaef24 (diff) | |
download | voidsky-04e0ebe8fc4ec32501cc4138e0357308a171807c.tar.zst |
Feed and notifs improvements (#498)
* Reduce frequency of the notifications sync * Reduce frequency of home feed polling * Ensure loading spinner is visible in notifications * Render notifications loading spinner in the flatlist * Fixes and performance improvements to notifications * Render 30+ on notifications if at max * Fix issue with repeating posts in home feed * Dont check for unread notifs if we're already at max
Diffstat (limited to 'src/view/shell/bottom-bar/BottomBar.tsx')
-rw-r--r-- | src/view/shell/bottom-bar/BottomBar.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/view/shell/bottom-bar/BottomBar.tsx b/src/view/shell/bottom-bar/BottomBar.tsx index 4dcaf3eb1..a7d11d81d 100644 --- a/src/view/shell/bottom-bar/BottomBar.tsx +++ b/src/view/shell/bottom-bar/BottomBar.tsx @@ -132,9 +132,7 @@ export const BottomBar = observer(({navigation}: BottomTabBarProps) => { ) } onPress={onPressNotifications} - notificationCount={ - store.me.notifications.unreadCount + store.invitedUsers.numNotifs - } + notificationCount={store.me.notifications.unreadCountLabel} /> <Btn testID="bottomBarProfileBtn" @@ -170,7 +168,7 @@ function Btn({ }: { testID?: string icon: JSX.Element - notificationCount?: number + notificationCount?: string onPress?: (event: GestureResponderEvent) => void onLongPress?: (event: GestureResponderEvent) => void }) { |