Show verified/keychange notifications when actually relevant

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-07-03 17:31:57 -07:00
parent 3d445fe549
commit 20451cc827
6 changed files with 52 additions and 14 deletions

View file

@ -315,10 +315,16 @@
return;
}
var options = {
viaSyncMessage: true,
viaContactSync: ev.viaContactSync,
key: key
};
if (state === 'DEFAULT') {
contact.setVerifiedDefault({viaSyncMessage: true, key: key});
contact.setVerifiedDefault(options);
} else if (state === 'VERIFIED') {
contact.setVerified({viaSyncMessage: true, key: key});
contact.setVerified(options);
}
}