Fix filtering muted dialogs
This commit is contained in:
parent
f7ebc9dabc
commit
f55281930e
@ -463,6 +463,7 @@ export class AppDialogsManager {
|
||||
});
|
||||
|
||||
rootScope.addEventListener('dialog_notify_settings', (dialog) => {
|
||||
this.validateDialogForFilter(dialog);
|
||||
this.setUnreadMessages(dialog); // возможно это не нужно, но нужно менять is-muted
|
||||
this.setFiltersUnreadCount();
|
||||
});
|
||||
@ -690,8 +691,6 @@ export class AppDialogsManager {
|
||||
for(const filterId in this.filtersRendered) {
|
||||
this.setFilterUnreadCount(+filterId);
|
||||
}
|
||||
|
||||
this.setFilterUnreadCount(0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -137,6 +137,10 @@ export default class DialogsStorage {
|
||||
delete this.folders[filter.id];
|
||||
});
|
||||
|
||||
rootScope.addEventListener('dialog_notify_settings', (dialog) => {
|
||||
this.processDialogForFilters(dialog);
|
||||
});
|
||||
|
||||
rootScope.addEventListener('chat_update', (chatId) => {
|
||||
const chat: Chat.chat = this.appChatsManager.getChat(chatId);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user