Merge branch 'hailey/decrement-badge-on-open-chat' into hailey/proper-badge-count

This commit is contained in:
Hailey
2024-05-16 12:11:36 -07:00
+2 -2
View File
@@ -171,9 +171,9 @@ export function useNotificationsHandler() {
) {
const isCurrentConvo = payload.convoId === currentConvoId
return {
shouldShowAlert: isCurrentConvo,
shouldShowAlert: !isCurrentConvo,
shouldPlaySound: false,
shouldSetBadge: isCurrentConvo,
shouldSetBadge: !isCurrentConvo,
}
}