|
|
|
@ -553,7 +553,7 @@
|
|
|
|
|
timestamp: Date.now(),
|
|
|
|
|
primaryDevicePubKey,
|
|
|
|
|
secondaryDevicePubKey: ourPubKey,
|
|
|
|
|
requestSignature,
|
|
|
|
|
requestSignature: new Uint8Array(requestSignature),
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
await window.libsession
|
|
|
|
@ -616,14 +616,7 @@
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// We need to send the our profile to the secondary device
|
|
|
|
|
const { displayName } = ourConversation.getLokiProfile();
|
|
|
|
|
const avatarPointer = ourConversation.get('avatarPointer');
|
|
|
|
|
const profileKey = window.storage.get('profileKey');
|
|
|
|
|
const lokiProfile = {
|
|
|
|
|
displayName,
|
|
|
|
|
profileKey,
|
|
|
|
|
avatarPointer,
|
|
|
|
|
};
|
|
|
|
|
const lokiProfile = ourConversation.getOurProfile();
|
|
|
|
|
|
|
|
|
|
// Try to upload to the file server and then send a message
|
|
|
|
|
try {
|
|
|
|
@ -631,7 +624,10 @@
|
|
|
|
|
const requestPairingMessage = new libsession.Messages.Outgoing.DeviceLinkGrantMessage(
|
|
|
|
|
{
|
|
|
|
|
timestamp: Date.now(),
|
|
|
|
|
...authorisation,
|
|
|
|
|
primaryDevicePubKey: ourPubKey,
|
|
|
|
|
secondaryDevicePubKey: secondaryDeviceStr,
|
|
|
|
|
requestSignature: new Uint8Array(requestSignature),
|
|
|
|
|
grantSignature: new Uint8Array(grantSignature),
|
|
|
|
|
lokiProfile,
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|