Fix own peer color
Fix load state if too few dialogs Fix opening chat with first album
This commit is contained in:
parent
fa9e5e58eb
commit
f4ad77576b
@ -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();
|
||||||
});
|
});
|
||||||
|
@ -2551,6 +2551,7 @@ export class AppImManager {
|
|||||||
for(let i = additionMsgIDs.length - 1; i >= 0; --i) {
|
for(let i = additionMsgIDs.length - 1; i >= 0; --i) {
|
||||||
const message = appMessagesManager.getMessage(additionMsgIDs[i]);
|
const message = appMessagesManager.getMessage(additionMsgIDs[i]);
|
||||||
if(message.grouped_id) additionMsgIDs.splice(i, 1);
|
if(message.grouped_id) additionMsgIDs.splice(i, 1);
|
||||||
|
else break;
|
||||||
}
|
}
|
||||||
|
|
||||||
maxID = additionMsgIDs[additionMsgIDs.length - 1] || maxID;
|
maxID = additionMsgIDs[additionMsgIDs.length - 1] || maxID;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user