Update last conversation message after loading

This commit is contained in:
Fedor Indutny 2022-01-07 10:20:29 -08:00 committed by GitHub
parent f8bbf5c998
commit f49df88877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -1208,8 +1208,12 @@ export class ConversationView extends window.Backbone.View<ConversationModel> {
await retryPlaceholders.findByConversationAndMarkOpened(this.model.id);
}
this.model.loadNewestMessages(undefined, undefined);
this.model.updateLastMessage();
const loadAndUpdate = async () => {
await this.model.loadNewestMessages(undefined, undefined);
await this.model.updateLastMessage();
};
loadAndUpdate();
this.focusMessageField();