We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d0d410 commit 4092716Copy full SHA for 4092716
spec/integ/crypto/olm-utils.ts
@@ -305,7 +305,9 @@ export function encryptMegolmEventRawPlainText(opts: {
305
},
306
type: "m.room.encrypted",
307
unsigned: {},
308
- state_key: opts.plaintext.state_key ? `${opts.plaintext.type}:${opts.plaintext.state_key}` : undefined,
+ state_key: opts.plaintext.hasOwnProperty("state_key")
309
+ ? `${opts.plaintext.type}:${opts.plaintext.state_key}`
310
+ : undefined,
311
};
312
}
313
0 commit comments