From 04679dadd236b3e301afa6cd0a39ac86a6ea3152 Mon Sep 17 00:00:00 2001 From: morethanwords Date: Wed, 10 Nov 2021 04:26:59 +0400 Subject: [PATCH] Fix adding suggested folder --- src/components/sidebarLeft/tabs/chatFolders.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/sidebarLeft/tabs/chatFolders.ts b/src/components/sidebarLeft/tabs/chatFolders.ts index 74efbb3c..9759874e 100644 --- a/src/components/sidebarLeft/tabs/chatFolders.ts +++ b/src/components/sidebarLeft/tabs/chatFolders.ts @@ -252,7 +252,12 @@ export default class AppChatFoldersTab extends SliderSuperTab { button.setAttribute('disabled', 'true'); - appMessagesManager.filtersStorage.createDialogFilter(filter.filter as any).then(bool => { + const f = filter.filter as MyDialogFilter; + f.includePeerIds = []; + f.excludePeerIds = []; + f.pinnedPeerIds = []; + + appMessagesManager.filtersStorage.createDialogFilter(f).then(bool => { if(bool) { div.remove(); }