Fix key conflict with self after master device re-install

Fix bug where re-installing would cause sync messages to fail and
produce unresolvable error indicators on messages that were actually
sent.

// FREEBIE
pull/749/head
lilia 10 years ago
parent 4cc6b1ff9a
commit cf85c5e25e

@ -36584,6 +36584,10 @@ var TextSecureServer = (function() {
textsecure.storage.remove('device_name');
textsecure.storage.remove('regionCode');
// remove our own identity key, which may have changed
// if we're relinking after a reinstall on the master device
textsecure.storage.axolotl.removeIdentityKey(number);
textsecure.storage.put('identityKey', identityKeyPair);
textsecure.storage.put('signaling_key', signalingKey);
textsecure.storage.put('password', password);

@ -106,6 +106,10 @@
textsecure.storage.remove('device_name');
textsecure.storage.remove('regionCode');
// remove our own identity key, which may have changed
// if we're relinking after a reinstall on the master device
textsecure.storage.axolotl.removeIdentityKey(number);
textsecure.storage.put('identityKey', identityKeyPair);
textsecure.storage.put('signaling_key', signalingKey);
textsecure.storage.put('password', password);

Loading…
Cancel
Save