Fix deadlock in saveIdentity

Archive only sibling sessions so as not to block on the same device lock as the
protocol lib.

// FREEBIE
This commit is contained in:
lilia 2017-06-27 16:27:24 -10:00 committed by Scott Nonnenberg
parent e5e4eab9c5
commit 3206536d47

View file

@ -468,8 +468,8 @@
verified : verifiedStatus,
nonblockingApproval : nonblockingApproval,
}).then(function() {
this.trigger('keychange', identifier);
this.archiveAllSessions(identifier).then(function() {
this.trigger('keychange', number);
this.archiveSiblingSessions(identifier).then(function() {
resolve(true);
}, reject);
}.bind(this));