You've already forked matrix-js-sdk
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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user