m.dummy events don't have content

This commit is contained in:
Bruno Windels 2020-09-08 18:27:49 +02:00
parent 9a7abb1899
commit 10b5614fd9

View file

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