Fix adding suggested folder

This commit is contained in:
morethanwords 2021-11-10 04:26:59 +04:00
parent 7a605dc9db
commit 04679dadd2

View File

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