mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-07 15:50:29 +03:00
Add a check for our custom tweak in the in-app notif handling to determine which should be used
This commit is contained in:
parent
a883963314
commit
ac5925f293
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue