diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 3ad06262..9655883d 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -38741,6 +38741,9 @@ OutgoingMessage.prototype = { if (updateDevices === undefined || updateDevices.indexOf(device.deviceId) > -1) { var address = new libsignal.SignalProtocolAddress(number, device.deviceId); var builder = new libsignal.SessionBuilder(textsecure.storage.protocol, address); + if (device.registrationId === 0) { + console.log("device registrationId 0!"); + } return builder.processPreKey(device).catch(function(error) { if (error.message === "Identity key changed") { error = new textsecure.OutgoingIdentityKeyError( diff --git a/libtextsecure/outgoing_message.js b/libtextsecure/outgoing_message.js index 64cbb099..1177b2db 100644 --- a/libtextsecure/outgoing_message.js +++ b/libtextsecure/outgoing_message.js @@ -50,6 +50,9 @@ OutgoingMessage.prototype = { if (updateDevices === undefined || updateDevices.indexOf(device.deviceId) > -1) { var address = new libsignal.SignalProtocolAddress(number, device.deviceId); var builder = new libsignal.SessionBuilder(textsecure.storage.protocol, address); + if (device.registrationId === 0) { + console.log("device registrationId 0!"); + } return builder.processPreKey(device).catch(function(error) { if (error.message === "Identity key changed") { error = new textsecure.OutgoingIdentityKeyError(