diff options
author | dan <dan.abramov@gmail.com> | 2024-06-10 18:17:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-10 18:17:26 +0200 |
commit | 620ab887132855d447f0a328bf58989c8f3f3328 (patch) | |
tree | 298b8543820bfe2255efb3fea494458fc6251545 /src/view/shell/bottom-bar/BottomBarWeb.tsx | |
parent | b688da8d5860569108a7f487dc97c5f0b403aee1 (diff) | |
download | voidsky-620ab887132855d447f0a328bf58989c8f3f3328.tar.zst |
Ungate mobile web notification badge (#4459)
Diffstat (limited to 'src/view/shell/bottom-bar/BottomBarWeb.tsx')
-rw-r--r-- | src/view/shell/bottom-bar/BottomBarWeb.tsx | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/src/view/shell/bottom-bar/BottomBarWeb.tsx b/src/view/shell/bottom-bar/BottomBarWeb.tsx index ff52af07b..21c253ee0 100644 --- a/src/view/shell/bottom-bar/BottomBarWeb.tsx +++ b/src/view/shell/bottom-bar/BottomBarWeb.tsx @@ -16,7 +16,6 @@ import {s} from '#/lib/styles' import {useSession} from '#/state/session' import {useLoggedOutViewControls} from '#/state/shell/logged-out' import {useCloseAllActiveElements} from '#/state/util' -import {useGate} from 'lib/statsig/statsig' import {useUnreadMessageCount} from 'state/queries/messages/list-converations' import {useUnreadNotifications} from 'state/queries/notifications/unread' import {Button} from '#/view/com/util/forms/Button' @@ -49,7 +48,6 @@ export function BottomBarWeb() { const {hasSession, currentAccount} = useSession() const pal = usePalette('default') const safeAreaInsets = useSafeAreaInsets() - const gate = useGate() const footerMinimalShellTransform = useMinimalShellFooterTransform() const {requestSwitchToAccount} = useLoggedOutViewControls() const closeAllActiveElements = useCloseAllActiveElements() @@ -115,14 +113,13 @@ export function BottomBarWeb() { width={iconWidth - 1} style={[styles.ctrlIcon, pal.text, styles.messagesIcon]} /> - {unreadMessageCount.count > 0 && - gate('show_notification_badge_mobile_web') && ( - <View style={styles.notificationCount}> - <Text style={styles.notificationCountLabel}> - {unreadMessageCount.numUnread} - </Text> - </View> - )} + {unreadMessageCount.count > 0 && ( + <View style={styles.notificationCount}> + <Text style={styles.notificationCountLabel}> + {unreadMessageCount.numUnread} + </Text> + </View> + )} </> ) }} @@ -136,14 +133,13 @@ export function BottomBarWeb() { width={iconWidth} style={[styles.ctrlIcon, pal.text, styles.bellIcon]} /> - {notificationCountStr !== '' && - gate('show_notification_badge_mobile_web') && ( - <View style={styles.notificationCount}> - <Text style={styles.notificationCountLabel}> - {notificationCountStr} - </Text> - </View> - )} + {notificationCountStr !== '' && ( + <View style={styles.notificationCount}> + <Text style={styles.notificationCountLabel}> + {notificationCountStr} + </Text> + </View> + )} </> ) }} |