Fix View Source accessing renamed private field on MatrixEvent

This commit is contained in:
Michael Telatynski 2021-06-19 15:37:48 +01:00 committed by J. Ryan Stinnett
parent b380e43e4f
commit e79b7d7adb

View File

@ -55,7 +55,7 @@ export default class ViewSource extends React.Component {
viewSourceContent() {
const mxEvent = this.props.mxEvent.replacingEvent() || this.props.mxEvent; // show the replacing event, not the original, if it is an edit
const isEncrypted = mxEvent.isEncrypted();
const decryptedEventSource = mxEvent._clearEvent; // FIXME: _clearEvent is private
const decryptedEventSource = mxEvent.clearEvent; // FIXME: clearEvent is private
const originalEventSource = mxEvent.event;
if (isEncrypted) {