Update last conversation message after loading

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2022-01-11 08:07:25 -08:00 committed by GitHub
parent 9d17f40c1a
commit 9aab70b940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -1211,8 +1211,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();