fix bug friend request being auto accepted by unknown user from their secondary device

pull/1137/head
Audric Ackermann 5 years ago
parent e2eeef3180
commit aa6371b6b0
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -1941,6 +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 || !await c.isFriendWithAnyDevice()) { if (!c || !await c.isFriendWithAnyDevice()) {
return false; return false;
} }

Loading…
Cancel
Save