Update unread count on conversation open

This commit is contained in:
Scott Nonnenberg 2022-06-20 11:38:52 -07:00 committed by GitHub
parent 9407654262
commit 7dd9cabbbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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