De-duplicate registrationId in deviceObject
This commit is contained in:
parent
92d0de6837
commit
b356403061
3 changed files with 11 additions and 7 deletions
|
@ -39,9 +39,8 @@
|
|||
var device = textsecure.storage.devices.getDeviceObject(identifier);
|
||||
if (device === undefined) {
|
||||
device = { encodedNumber: identifier,
|
||||
//TODO: Remove this duplication (esp registrationId?)
|
||||
identityKey: record.identityKey,
|
||||
registrationId: record.registrationId
|
||||
//TODO: Remove this duplication
|
||||
identityKey: record.identityKey
|
||||
};
|
||||
}
|
||||
if (getString(device.identityKey) !== getString(record.identityKey))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue