1
0
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:
Richard van der Hoff
2016-09-06 15:59:57 +01:00
parent e0f1b9ebf0
commit 408671b58a

View File

@@ -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");
} }