|
|
|
@ -1818,10 +1818,11 @@
|
|
|
|
|
|
|
|
|
|
const otherDevices = await libloki.storage.getPairedDevicesFor(id);
|
|
|
|
|
const devices = [id, ...otherDevices];
|
|
|
|
|
const deviceConversations = await Promise.all(devices.map(d => ConversationController.getOrCreateAndWait(
|
|
|
|
|
d,
|
|
|
|
|
'private'
|
|
|
|
|
)));
|
|
|
|
|
const deviceConversations = await Promise.all(
|
|
|
|
|
devices.map(d =>
|
|
|
|
|
ConversationController.getOrCreateAndWait(d, 'private')
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
deviceConversations.forEach(device => {
|
|
|
|
|
if (device.isFriendRequestStatusNoneOrExpired()) {
|
|
|
|
|
libloki.api.sendAutoFriendRequestMessage(device.id);
|
|
|
|
@ -1831,7 +1832,6 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (details.profileKey) {
|
|
|
|
|
const profileKey = window.Signal.Crypto.arrayBufferToBase64(
|
|
|
|
|
details.profileKey
|
|
|
|
|