Fix tests
This commit is contained in:
parent
cda22880a0
commit
4e21e783db
1 changed files with 11 additions and 0 deletions
|
@ -82,6 +82,17 @@ SignalProtocolStore.prototype = {
|
||||||
resolve(res);
|
resolve(res);
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
},
|
},
|
||||||
|
loadSignedPreKeys: function() {
|
||||||
|
return new Promise(function(resolve) {
|
||||||
|
var res = [];
|
||||||
|
for (var i in this.store) {
|
||||||
|
if (i.startsWith('25519KeysignedKey')) {
|
||||||
|
res.push(this.store[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
resolve(res);
|
||||||
|
}.bind(this));
|
||||||
|
},
|
||||||
storeSignedPreKey: function(keyId, keyPair) {
|
storeSignedPreKey: function(keyId, keyPair) {
|
||||||
return new Promise(function(resolve) {
|
return new Promise(function(resolve) {
|
||||||
resolve(this.put('25519KeysignedKey' + keyId, keyPair));
|
resolve(this.put('25519KeysignedKey' + keyId, keyPair));
|
||||||
|
|
Loading…
Reference in a new issue