Browse Source

Fix adding suggested folder

master
morethanwords 3 years ago
parent
commit
04679dadd2
  1. 7
      src/components/sidebarLeft/tabs/chatFolders.ts

7
src/components/sidebarLeft/tabs/chatFolders.ts

@ -252,7 +252,12 @@ export default class AppChatFoldersTab extends SliderSuperTab { @@ -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();
}

Loading…
Cancel
Save