From b9da721faa3618ef18d1d6a48bff2a65a83a527e Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 31 Jan 2020 11:18:24 +1100 Subject: [PATCH] open the conversation when accepting a friend request also, it does what is needed to show the new friend in the friend list --- js/models/conversations.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/models/conversations.js b/js/models/conversations.js index 17278914d..f6f81c0a2 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -233,6 +233,12 @@ const lastMessageModel = messages.at(0); if (lastMessageModel) { lastMessageModel.acceptFriendRequest(); + await this.markRead(); + window.Whisper.events.trigger( + 'showConversation', + this.id, + lastMessageModel.id + ); } }, async declineFriendRequest() {