Browse Source

Fix infinite checking mute_until

master
Eduard Kuzmenko 2 years ago
parent
commit
385382d989
  1. 4
      src/lib/appManagers/appNotificationsManager.ts

4
src/lib/appManagers/appNotificationsManager.ts

@ -436,13 +436,13 @@ export class AppNotificationsManager { @@ -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',

Loading…
Cancel
Save