Fix filtering muted dialogs

This commit is contained in:
Eduard Kuzmenko 2022-03-09 22:18:43 +02:00
parent f7ebc9dabc
commit f55281930e
2 changed files with 5 additions and 2 deletions

View File

@ -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);
}
/**

View File

@ -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);