From 254da26bef6304800782339316cd3529f5139457 Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 16 May 2024 12:02:49 -0700 Subject: [PATCH] oops --- src/lib/hooks/useNotificationHandler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/hooks/useNotificationHandler.ts b/src/lib/hooks/useNotificationHandler.ts index 83bc300e8d..e288ac3ad4 100644 --- a/src/lib/hooks/useNotificationHandler.ts +++ b/src/lib/hooks/useNotificationHandler.ts @@ -171,9 +171,9 @@ export function useNotificationsHandler() { ) { const isCurrentConvo = payload.convoId === currentConvoId return { - shouldShowAlert: isCurrentConvo, + shouldShowAlert: !isCurrentConvo, shouldPlaySound: false, - shouldSetBadge: isCurrentConvo, + shouldSetBadge: !isCurrentConvo, } }