Fix render ancient dialog
Fix saving contacts list to state
This commit is contained in:
parent
2202b6507a
commit
72951925b8
@ -518,12 +518,18 @@ export class AppDialogsManager {
|
||||
});
|
||||
}
|
||||
|
||||
if(!result.dialogs.length || this.chatList.childElementCount == result.count) { // loaded all
|
||||
// * loaded all
|
||||
//if(!result.dialogs.length || this.chatList.childElementCount == result.count) {
|
||||
// !result.dialogs.length не подходит, так как при супердревном диалоге getConversations его не выдаст.
|
||||
if(this.chatList.childElementCount == result.count) {
|
||||
this.loadedAll = true;
|
||||
}
|
||||
|
||||
this.log.debug('getDialogs ' + loadCount + ' dialogs by offset:', offsetIndex, result, this.chatList.childElementCount);
|
||||
this.scroll.onScroll();
|
||||
|
||||
setTimeout(() => {
|
||||
this.scroll.onScroll();
|
||||
}, 0);
|
||||
} catch(err) {
|
||||
this.log.error(err);
|
||||
}
|
||||
|
@ -100,6 +100,8 @@ export class AppUsersManager {
|
||||
for(const userID of contactsList) {
|
||||
appStateManager.setPeer(userID, this.getUser(userID));
|
||||
}
|
||||
|
||||
appStateManager.pushToState('contactsList', contactsList);
|
||||
});
|
||||
|
||||
appStateManager.getState().then((state) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user