Skip to content

Commit 25cf811

Browse files
author
Thomas Belin
committed
fix: Address serializing prekey issues
Due to wrongly bound "this" context on the serialize_prekey call
1 parent f9c4625 commit 25cf811

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/main/cryptography/CryptographyService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class CryptographyService {
120120
}) {
121121
if (onNewPrekeys) {
122122
this.cryptobox.on(Cryptobox.TOPIC.NEW_PREKEYS, prekeys => {
123-
const serializedPreKeys = prekeys.map(this.cryptobox.serialize_prekey);
123+
const serializedPreKeys = prekeys.map(prekey => this.cryptobox.serialize_prekey(prekey));
124124
onNewPrekeys(serializedPreKeys);
125125
});
126126
}

0 commit comments

Comments
 (0)