mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Archive sessions whenever an identity key changes
Sessions established with the previous identity should no longer be used for sending, so we should close them. Since we've added this call to saveIdentity, we can omit the call to it after profile fetches. // FREEBIE
This commit is contained in:
@@ -569,11 +569,7 @@
|
||||
|
||||
return textsecure.storage.protocol.saveIdentity(
|
||||
id, identityKey, false
|
||||
).then(function(isIdentityChange) {
|
||||
if (isIdentityChange) {
|
||||
return textsecure.storage.protocol.archiveAllSessions(id);
|
||||
}
|
||||
});
|
||||
);
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user