From 408671b58af7967ce3d20ff77f96a6f838caeb11 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 6 Sep 2016 15:59:57 +0100 Subject: [PATCH] Megolm: Remove check for signature field We're putting the signature in the body, so we don't want a separate field. --- lib/crypto-algorithms/megolm.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/crypto-algorithms/megolm.js b/lib/crypto-algorithms/megolm.js index b3d5e6ff7..d54a442e6 100644 --- a/lib/crypto-algorithms/megolm.js +++ b/lib/crypto-algorithms/megolm.js @@ -184,7 +184,6 @@ MegolmEncryption.prototype.encryptMessage = function(room, eventType, content) { sender_key: self._olmDevice.deviceCurve25519Key, body: ciphertext, session_id: session_id, - signature: "FIXME", }; return encryptedContent; @@ -252,7 +251,7 @@ MegolmDecryption.prototype.decryptEvent = function(event) { content.session_id); if (!content.sender_key || !content.session_id || - !content.body || !content.signature + !content.body ) { throw new base.DecryptionError("Missing fields in input"); }