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);