From be1b9bc3aab2e26eb726782a03fbaeedbf70727c Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 6 Dec 2022 16:19:57 +0000 Subject: [PATCH] Fix the message ID on key-share messages https://github.com/matrix-org/matrix-js-sdk/pull/2938 introduced message IDs on outgoing to-device messages, but a typo meant that the IDs on key-share messages were excessive. --- src/crypto/algorithms/megolm.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/algorithms/megolm.ts b/src/crypto/algorithms/megolm.ts index 1d164cc2334..9ba33e32a78 100644 --- a/src/crypto/algorithms/megolm.ts +++ b/src/crypto/algorithms/megolm.ts @@ -1756,7 +1756,7 @@ class MegolmDecryption extends DecryptionAlgorithm { algorithm: olmlib.OLM_ALGORITHM, sender_key: this.olmDevice.deviceCurve25519Key, ciphertext: {}, - [ToDeviceMessageId]: uuidv4, + [ToDeviceMessageId]: uuidv4(), }; return this.olmlib.encryptMessageForDevice(