Fix string vs number comparison
Fix bug in device storage causing duplicate device messages after a 410.
This commit is contained in:
@@ -38131,7 +38131,7 @@ axolotlInternal.RecipientRecord = function() {
|
||||
// Add pending devices from tempKeys
|
||||
for (var encodedNumber in tempKeys) {
|
||||
var deviceNumber = textsecure.utils.unencodeNumber(encodedNumber)[0];
|
||||
var deviceId = textsecure.utils.unencodeNumber(encodedNumber)[1];
|
||||
var deviceId = parseInt(textsecure.utils.unencodeNumber(encodedNumber)[1]);
|
||||
if (deviceNumber === number && deviceIds.indexOf(deviceId) < 0) {
|
||||
deviceIds.push(deviceId);
|
||||
}
|
||||
|
Reference in New Issue
Block a user