Update unread count on conversation open

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal 2022-06-20 11:58:44 -07:00 committed by GitHub
parent a27dee79f7
commit 863a29430d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -1264,8 +1264,11 @@ export class ConversationView extends window.Backbone.View<ConversationModel> {
}
const loadAndUpdate = async () => {
await this.model.loadNewestMessages(undefined, undefined);
await this.model.updateLastMessage();
Promise.all([
this.model.loadNewestMessages(undefined, undefined),
this.model.updateLastMessage(),
this.model.updateUnread(),
]);
};
loadAndUpdate();