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) {