Compare commits

...

10 Commits

Author SHA1 Message Date
Hailey 2bebfd5820 merge in main 2024-06-07 14:22:28 -07:00
Hailey 917de5c4af Merge branch 'main' into hailey/proper-badge-count 2024-05-16 12:18:16 -07:00
Hailey ab086c203b Merge branch 'hailey/decrement-badge-on-open-chat' into hailey/proper-badge-count 2024-05-16 12:11:36 -07:00
Hailey dc5c3070b3 nit 2024-05-16 12:10:53 -07:00
Hailey a205c86b45 update the number correctly 2024-05-16 12:08:29 -07:00
Hailey 254da26bef oops 2024-05-16 12:02:49 -07:00
Hailey cca22c44da remove setting badge count 2024-05-16 12:01:35 -07:00
Hailey 288279b79d remove async 2024-05-16 11:59:22 -07:00
Hailey 6d81cef593 handle decrement in useMarkAsRead 2024-05-16 11:58:18 -07:00
Hailey b303c88ac2 decrement badge count for chats 2024-05-15 20:34:57 -07:00
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
// update & broadcast
setNumUnread('')
broadcast.postMessage({event: ''})
decrementBadgeCount('reset')
decrementBadgeCount(Math.min(cacheRef.current.unreadCount, 30))
},
async checkUnread({
+3 -2
View File
@@ -5,10 +5,11 @@ import {
FontAwesomeIcon,
FontAwesomeIconStyle,
} from '@fortawesome/react-native-fontawesome'
import {Text} from './text/Text'
import {UserGroupIcon} from 'lib/icons'
import {usePalette} from 'lib/hooks/usePalette'
import {UserGroupIcon} from 'lib/icons'
import {isWeb} from 'platform/detection'
import {Text} from './text/Text'
export function EmptyState({
testID,