Fix infinite checking mute_until
This commit is contained in:
parent
777d1f5da7
commit
385382d989
@ -436,13 +436,13 @@ export class AppNotificationsManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const muteUntil = peerNotifySettings.mute_until;
|
const muteUntil = peerNotifySettings.mute_until;
|
||||||
if(muteUntil === undefined) {
|
if(!muteUntil) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(muteUntil <= timestamp) {
|
if(muteUntil <= timestamp) {
|
||||||
// ! do not delete it because peer's unique settings will be overwritten in getPeerLocalSettings with type's settings
|
// ! 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', {
|
rootScope.dispatchEvent('updateNotifySettings', {
|
||||||
_: 'updateNotifySettings',
|
_: 'updateNotifySettings',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user