Show verified/keychange notifications when actually relevant
FREEBIE
This commit is contained in:
parent
3d445fe549
commit
20451cc827
6 changed files with 52 additions and 14 deletions
|
@ -625,9 +625,12 @@
|
|||
timestamp : Date.now(),
|
||||
nonblockingApproval : true
|
||||
}).then(function() {
|
||||
if (!isPresent || !isEqual) {
|
||||
if (isPresent && !isEqual) {
|
||||
this.trigger('keychange', identifier);
|
||||
return this.archiveAllSessions(identifier).then(resolve, reject);
|
||||
return this.archiveAllSessions(identifier).then(function() {
|
||||
// true signifies that we overwrote a previous key with a new one
|
||||
return resolve(true);
|
||||
}, reject);
|
||||
}
|
||||
|
||||
return resolve();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue