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 () => {
|
const loadAndUpdate = async () => {
|
||||||
await this.model.loadNewestMessages(undefined, undefined);
|
Promise.all([
|
||||||
await this.model.updateLastMessage();
|
this.model.loadNewestMessages(undefined, undefined),
|
||||||
|
this.model.updateLastMessage(),
|
||||||
|
this.model.updateUnread(),
|
||||||
|
]);
|
||||||
};
|
};
|
||||||
|
|
||||||
loadAndUpdate();
|
loadAndUpdate();
|
||||||
|
|
Loading…
Reference in a new issue