Let removeIdentityKey delete the entire record
Previously we would only clear the publicKey since that was the only attribute, but now we should delete the entire record. This method is currently only called from tests. // FREEBIE
This commit is contained in:
parent
d1858de39b
commit
12d9bb61c3
1 changed files with 1 additions and 1 deletions
|
@ -562,7 +562,7 @@
|
|||
return new Promise(function(resolve, reject) {
|
||||
var identityKey = new IdentityKey({id: number});
|
||||
identityKey.fetch().then(function() {
|
||||
identityKey.save({publicKey: undefined});
|
||||
identityKey.destroy();
|
||||
}).fail(function() {
|
||||
reject(new Error("Tried to remove identity for unknown number"));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue