|
|
@ -329,19 +329,16 @@ export class AppDialogsManager { |
|
|
|
|
|
|
|
|
|
|
|
//selectTab(0);
|
|
|
|
//selectTab(0);
|
|
|
|
(this.folders.menu.firstElementChild.firstElementChild as HTMLElement).click(); |
|
|
|
(this.folders.menu.firstElementChild.firstElementChild as HTMLElement).click(); |
|
|
|
|
|
|
|
appStateManager.getState().then((state) => { |
|
|
|
/* false && */appStateManager.getState().then(() => { |
|
|
|
const getFiltersPromise = !state.filters || Object.keys(state.filters).length ? appMessagesManager.filtersStorage.getDialogFilters() : Promise.resolve({}); |
|
|
|
return appMessagesManager.filtersStorage.getDialogFilters(); |
|
|
|
getFiltersPromise.then((filters) => { |
|
|
|
}).then(filters => { |
|
|
|
for(const filterID in filters) { |
|
|
|
for(const filterID in filters) { |
|
|
|
this.addFilter(filters[filterID]); |
|
|
|
this.addFilter(filters[filterID]); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
return this.loadDialogs(); |
|
|
|
return this.loadDialogs(); |
|
|
|
}).then(result => { |
|
|
|
}).then(result => { |
|
|
|
//this.setPinnedDelimiter();
|
|
|
|
|
|
|
|
//appSidebarLeft.onChatsScroll();
|
|
|
|
|
|
|
|
//this.loadDialogs(1);
|
|
|
|
|
|
|
|
appMessagesManager.getConversationsAll('', 1).then(() => { |
|
|
|
appMessagesManager.getConversationsAll('', 1).then(() => { |
|
|
|
this.accumulateArchivedUnread(); |
|
|
|
this.accumulateArchivedUnread(); |
|
|
|
}); |
|
|
|
}); |
|
|
|