open the conversation when accepting a friend request

also, it does what is needed to show the new friend in the friend list
pull/773/head
Audric Ackermann 5 years ago
parent 5b565695a3
commit b9da721faa
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -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() {

Loading…
Cancel
Save