1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Respect the comment in getClearContent

This commit is contained in:
Brad Murray
2021-07-25 11:19:36 -04:00
parent ad79a64f1c
commit faf237e588

View File

@@ -732,7 +732,7 @@ export class MatrixEvent extends EventEmitter {
* @returns {Object} The cleartext (decrypted) content for the event
*/
public getClearContent(): IContent | null {
return this.clearEvent?.content || null;
return this.clearEvent ? this.clearEvent.content : null;
}
/**