Merge pull request #31 from Mikunj/fix/minor-bug

Fixed incorrect variable used.
pull/32/head
Mikunj Varsani 6 years ago committed by GitHub
commit e4d28fbcb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -455,7 +455,7 @@ async function getContactPreKeyByIdentityKey(key) {
}
async function getContactPreKeys(keyId, identityKeyString) {
const keys = await channels.getContactPreKeys(keyId, identityKeyString);
return keys.map(k => keysToArrayBuffer(PRE_KEY_KEYS, data));
return keys.map(k => keysToArrayBuffer(PRE_KEY_KEYS, k));
}
async function getAllContactPreKeys() {
const keys = await channels.getAllContactPreKeys();
@ -487,7 +487,7 @@ async function getContactSignedPreKeyByIdentityKey(key) {
}
async function getContactSignedPreKeys(keyId, identityKeyString) {
const keys = await channels.getContactSignedPreKeys(keyId, identityKeyString);
return keys.map(k => keysToArrayBuffer(PRE_KEY_KEYS, data));
return keys.map(k => keysToArrayBuffer(PRE_KEY_KEYS, k));
}
async function bulkAddContactSignedPreKeys(array) {
const updated = map(array, data => keysFromArrayBuffer(PRE_KEY_KEYS, data));

Loading…
Cancel
Save