From 10b5614fd9a28851cbdfb57b2daef627a629d462 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 8 Sep 2020 18:27:49 +0200 Subject: [PATCH] m.dummy events don't have content --- src/matrix/e2ee/olm/Decryption.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/matrix/e2ee/olm/Decryption.js b/src/matrix/e2ee/olm/Decryption.js index b3f47cd6..fc16852a 100644 --- a/src/matrix/e2ee/olm/Decryption.js +++ b/src/matrix/e2ee/olm/Decryption.js @@ -188,9 +188,6 @@ export class Decryption { if (!payload.type) { throw new DecryptionError("missing type on payload", event, {payload}); } - if (!payload.content) { - throw new DecryptionError("missing content on payload", event, {payload}); - } if (typeof payload.keys?.ed25519 !== "string") { throw new DecryptionError("Missing or invalid claimed ed25519 key on payload", event, {payload}); }