Update unread count on conversation open
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
a27dee79f7
commit
863a29430d
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue