From 6209d7d2e26fa98d8029c5a9652dd8137a0c55bd Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 3 Jan 2020 11:13:17 +1100 Subject: [PATCH] remove conversation when friendrequest is declined --- js/models/conversations.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/models/conversations.js b/js/models/conversations.js index 0e1b9c9d6..3d1a8c7ea 100644 --- a/js/models/conversations.js +++ b/js/models/conversations.js @@ -978,6 +978,12 @@ direction: 'incoming', }); await window.libloki.storage.removeContactPreKeyBundle(this.id); + await this.destroyMessages(); + window.pushToast({ + title: i18n('friendRequestDeclined'), + type: 'success', + id: 'declineFriendRequest', + }); }, // We have accepted an incoming friend request async onAcceptFriendRequest(options = {}) {