From ac5925f293f8a8e44238afc50baff554995bc966 Mon Sep 17 00:00:00 2001 From: Gigiaj Date: Sun, 8 Jun 2025 20:16:44 -0500 Subject: [PATCH] Add a check for our custom tweak in the in-app notif handling to determine which should be used --- src/app/pages/client/ClientNonUIFeatures.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/pages/client/ClientNonUIFeatures.tsx b/src/app/pages/client/ClientNonUIFeatures.tsx index ce952bfc..0e2d5d67 100644 --- a/src/app/pages/client/ClientNonUIFeatures.tsx +++ b/src/app/pages/client/ClientNonUIFeatures.tsx @@ -187,12 +187,15 @@ function MessageNotifications() { ) => { if (mx.getSyncState() !== 'SYNCING') return; if (document.hasFocus() && (selectedRoomId === room?.roomId || notificationSelected)) return; + let pushActions = mx.getPushActionsForEvent(mEvent); + const hasInAppTweak = pushActions?.tweaks?.sound === 'cinny_show_banner'; + if ( !room || !data.liveEvent || room.isSpaceRoom() || !isNotificationEvent(mEvent) || - getNotificationType(mx, room.roomId) === NotificationType.Mute + (getNotificationType(mx, room.roomId) === NotificationType.Mute && !hasInAppTweak) ) { return; }