Update unread count on conversation open
This commit is contained in:
parent
9407654262
commit
7dd9cabbbd
1 changed files with 5 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue