mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user