From ec3132afc9c5a64479bf20069d16dde6a2e4cfea Mon Sep 17 00:00:00 2001 From: Mikunj Date: Thu, 21 May 2020 09:10:52 +1000 Subject: [PATCH] Fix auto accepting friend requests --- js/models/messages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/models/messages.js b/js/models/messages.js index db074fc42..bb81814d0 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -1941,7 +1941,7 @@ const { primaryDevicePubKey } = authorisation; // ensure the primary device is a friend const c = window.ConversationController.get(primaryDevicePubKey); - if (!c || !c.isFriendWithAnyDevice()) { + if (!c || !await c.isFriendWithAnyDevice()) { return false; } await libloki.storage.savePairingAuthorisation(authorisation);