From 385382d989fcb0b85567445893cbee4931013347 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Wed, 26 Jan 2022 17:52:04 +0400 Subject: [PATCH] Fix infinite checking mute_until --- src/lib/appManagers/appNotificationsManager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/appManagers/appNotificationsManager.ts b/src/lib/appManagers/appNotificationsManager.ts index b4de0237..d3b3968e 100644 --- a/src/lib/appManagers/appNotificationsManager.ts +++ b/src/lib/appManagers/appNotificationsManager.ts @@ -436,13 +436,13 @@ export class AppNotificationsManager { } const muteUntil = peerNotifySettings.mute_until; - if(muteUntil === undefined) { + if(!muteUntil) { continue; } if(muteUntil <= timestamp) { // ! do not delete it because peer's unique settings will be overwritten in getPeerLocalSettings with type's settings - // delete peerNotifySettings.mute_until; + peerNotifySettings.mute_until = 0; rootScope.dispatchEvent('updateNotifySettings', { _: 'updateNotifySettings',