You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-29 16:43:09 +03:00
Megolm: Remove check for signature field
We're putting the signature in the body, so we don't want a separate field.
This commit is contained in:
@@ -184,7 +184,6 @@ MegolmEncryption.prototype.encryptMessage = function(room, eventType, content) {
|
|||||||
sender_key: self._olmDevice.deviceCurve25519Key,
|
sender_key: self._olmDevice.deviceCurve25519Key,
|
||||||
body: ciphertext,
|
body: ciphertext,
|
||||||
session_id: session_id,
|
session_id: session_id,
|
||||||
signature: "FIXME",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return encryptedContent;
|
return encryptedContent;
|
||||||
@@ -252,7 +251,7 @@ MegolmDecryption.prototype.decryptEvent = function(event) {
|
|||||||
content.session_id);
|
content.session_id);
|
||||||
|
|
||||||
if (!content.sender_key || !content.session_id ||
|
if (!content.sender_key || !content.session_id ||
|
||||||
!content.body || !content.signature
|
!content.body
|
||||||
) {
|
) {
|
||||||
throw new base.DecryptionError("Missing fields in input");
|
throw new base.DecryptionError("Missing fields in input");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user