|
|
@ -596,7 +596,7 @@
|
|
|
|
// throws if invalid
|
|
|
|
// throws if invalid
|
|
|
|
this.validatePubKeyHex(secondaryDevicePubKey);
|
|
|
|
this.validatePubKeyHex(secondaryDevicePubKey);
|
|
|
|
// we need a conversation for sending a message
|
|
|
|
// we need a conversation for sending a message
|
|
|
|
await ConversationController.getOrCreateAndWait(
|
|
|
|
const secondaryConversation = await ConversationController.getOrCreateAndWait(
|
|
|
|
secondaryDevicePubKey,
|
|
|
|
secondaryDevicePubKey,
|
|
|
|
'private'
|
|
|
|
'private'
|
|
|
|
);
|
|
|
|
);
|
|
|
@ -626,6 +626,13 @@
|
|
|
|
authorisation,
|
|
|
|
authorisation,
|
|
|
|
secondaryDevicePubKey
|
|
|
|
secondaryDevicePubKey
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
// Always be friends with secondary devices
|
|
|
|
|
|
|
|
await secondaryConversation.setFriendRequestStatus(
|
|
|
|
|
|
|
|
window.friends.friendRequestStatusEnum.friends,
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
blockSync: true,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
validatePubKeyHex(pubKey) {
|
|
|
|
validatePubKeyHex(pubKey) {
|
|
|
|
const c = new Whisper.Conversation({
|
|
|
|
const c = new Whisper.Conversation({
|
|
|
|