From 863a29430db3ef85401912eee7c4079ac88c1bec Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Mon, 20 Jun 2022 11:58:44 -0700 Subject: [PATCH] Update unread count on conversation open Co-authored-by: Scott Nonnenberg --- ts/views/conversation_view.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ts/views/conversation_view.tsx b/ts/views/conversation_view.tsx index 144d80298..a5e8ec0fc 100644 --- a/ts/views/conversation_view.tsx +++ b/ts/views/conversation_view.tsx @@ -1264,8 +1264,11 @@ export class ConversationView extends window.Backbone.View { } 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();