|
|
@ -1941,7 +1941,7 @@
|
|
|
|
const { primaryDevicePubKey } = authorisation;
|
|
|
|
const { primaryDevicePubKey } = authorisation;
|
|
|
|
// ensure the primary device is a friend
|
|
|
|
// ensure the primary device is a friend
|
|
|
|
const c = window.ConversationController.get(primaryDevicePubKey);
|
|
|
|
const c = window.ConversationController.get(primaryDevicePubKey);
|
|
|
|
if (!c || !c.isFriendWithAnyDevice()) {
|
|
|
|
if (!c || !await c.isFriendWithAnyDevice()) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
await libloki.storage.savePairingAuthorisation(authorisation);
|
|
|
|
await libloki.storage.savePairingAuthorisation(authorisation);
|
|
|
|