An ATproto social media client -- with an independent Appview.
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

Ungate mobile web notification badge (#4459)

authored by

dan and committed by
GitHub
620ab887 b688da8d

+14 -19
-1
src/lib/statsig/gates.ts
··· 3 3 | 'request_notifications_permission_after_onboarding_v2' 4 4 | 'show_avi_follow_button' 5 5 | 'show_follow_back_label_v2' 6 - | 'show_notification_badge_mobile_web'
+14 -18
src/view/shell/bottom-bar/BottomBarWeb.tsx
··· 16 16 import {useSession} from '#/state/session' 17 17 import {useLoggedOutViewControls} from '#/state/shell/logged-out' 18 18 import {useCloseAllActiveElements} from '#/state/util' 19 - import {useGate} from 'lib/statsig/statsig' 20 19 import {useUnreadMessageCount} from 'state/queries/messages/list-converations' 21 20 import {useUnreadNotifications} from 'state/queries/notifications/unread' 22 21 import {Button} from '#/view/com/util/forms/Button' ··· 49 48 const {hasSession, currentAccount} = useSession() 50 49 const pal = usePalette('default') 51 50 const safeAreaInsets = useSafeAreaInsets() 52 - const gate = useGate() 53 51 const footerMinimalShellTransform = useMinimalShellFooterTransform() 54 52 const {requestSwitchToAccount} = useLoggedOutViewControls() 55 53 const closeAllActiveElements = useCloseAllActiveElements() ··· 115 113 width={iconWidth - 1} 116 114 style={[styles.ctrlIcon, pal.text, styles.messagesIcon]} 117 115 /> 118 - {unreadMessageCount.count > 0 && 119 - gate('show_notification_badge_mobile_web') && ( 120 - <View style={styles.notificationCount}> 121 - <Text style={styles.notificationCountLabel}> 122 - {unreadMessageCount.numUnread} 123 - </Text> 124 - </View> 125 - )} 116 + {unreadMessageCount.count > 0 && ( 117 + <View style={styles.notificationCount}> 118 + <Text style={styles.notificationCountLabel}> 119 + {unreadMessageCount.numUnread} 120 + </Text> 121 + </View> 122 + )} 126 123 </> 127 124 ) 128 125 }} ··· 136 133 width={iconWidth} 137 134 style={[styles.ctrlIcon, pal.text, styles.bellIcon]} 138 135 /> 139 - {notificationCountStr !== '' && 140 - gate('show_notification_badge_mobile_web') && ( 141 - <View style={styles.notificationCount}> 142 - <Text style={styles.notificationCountLabel}> 143 - {notificationCountStr} 144 - </Text> 145 - </View> 146 - )} 136 + {notificationCountStr !== '' && ( 137 + <View style={styles.notificationCount}> 138 + <Text style={styles.notificationCountLabel}> 139 + {notificationCountStr} 140 + </Text> 141 + </View> 142 + )} 147 143 </> 148 144 ) 149 145 }}