diff --git a/libtextsecure/message_receiver.js b/libtextsecure/message_receiver.js index 313e6c430..ec8f380e2 100644 --- a/libtextsecure/message_receiver.js +++ b/libtextsecure/message_receiver.js @@ -954,11 +954,14 @@ MessageReceiver.prototype.extend({ if (conversation && !message.flags) { const isFriendRequestAccept = await conversation.onFriendRequestAccepted(); if (isFriendRequestAccept) { - await conversation.notifyFriendRequest(envelope.source, 'accepted'); - this.removeFromCache(envelope); - return null; + await conversation.notifyFriendRequest( + envelope.source, + 'accepted' + ); } } + this.removeFromCache(envelope); + return null; } const ev = new Event('message');