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 () => {
|
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 New Issue