From 3c977747a6ead94ca2b245b293a7b36e62a66c3e Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 7 May 2020 16:33:41 +1000 Subject: [PATCH] tinkering --- js/conversation_controller.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/js/conversation_controller.js b/js/conversation_controller.js index 64d318b9b..4725be7ed 100644 --- a/js/conversation_controller.js +++ b/js/conversation_controller.js @@ -166,8 +166,10 @@ if (conversation.isClosedGroup()) { await conversation.leaveGroup(); - const deviceIds = await textsecure.storage.protocol.getDeviceIds(id); + + console.log('[vince] deviceIds:', deviceIds); + await Promise.all( deviceIds.map(deviceId => { const address = new libsignal.SignalProtocolAddress(id, deviceId); @@ -175,10 +177,18 @@ textsecure.storage.protocol, address ); + + console.log('[vince] address:', address); + console.log('[vince] sessionCipher:', sessionCipher); + return sessionCipher.deleteAllSessionsForDevice(); }) ); + + + + } else if (conversation.isPublic()) { const channelAPI = await conversation.getPublicSendData(); if (channelAPI === null) {