remove conversation when friendrequest is declined

This commit is contained in:
Audric Ackermann 2020-01-03 11:13:17 +11:00
parent 34fde5f71a
commit 6209d7d2e2

View file

@ -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 = {}) {