mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-06 23:30:28 +03:00
Undo these
This commit is contained in:
parent
99891765b7
commit
39fa3c49b1
1 changed files with 1 additions and 3 deletions
|
|
@ -187,15 +187,13 @@ function MessageNotifications() {
|
||||||
) => {
|
) => {
|
||||||
if (mx.getSyncState() !== 'SYNCING') return;
|
if (mx.getSyncState() !== 'SYNCING') return;
|
||||||
if (document.hasFocus() && (selectedRoomId === room?.roomId || notificationSelected)) return;
|
if (document.hasFocus() && (selectedRoomId === room?.roomId || notificationSelected)) return;
|
||||||
let pushActions = mx.getPushActionsForEvent(mEvent);
|
|
||||||
const hasInAppTweak = pushActions?.tweaks?.sound === 'cinny_show_banner';
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!room ||
|
!room ||
|
||||||
!data.liveEvent ||
|
!data.liveEvent ||
|
||||||
room.isSpaceRoom() ||
|
room.isSpaceRoom() ||
|
||||||
!isNotificationEvent(mEvent) ||
|
!isNotificationEvent(mEvent) ||
|
||||||
(getNotificationType(mx, room.roomId) === NotificationType.Mute && !hasInAppTweak)
|
getNotificationType(mx, room.roomId) === NotificationType.Mute
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue