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
This commit is contained in:
lilia 2015-11-24 16:14:33 -08:00
parent 4cc6b1ff9a
commit cf85c5e25e
2 changed files with 8 additions and 0 deletions

View file

@ -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);

View file

@ -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);