mirror of
https://github.com/element-hq/element-web
synced 2024-10-24 19:55:54 +03:00
Merge pull request #6225 from matrix-org/jryans/repair-decrypted-source
Fix View Source accessing renamed private field on MatrixEvent
This commit is contained in:
commit
b6e0068822
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ export default class ViewSource extends React.Component {
|
||||||
viewSourceContent() {
|
viewSourceContent() {
|
||||||
const mxEvent = this.props.mxEvent.replacingEvent() || this.props.mxEvent; // show the replacing event, not the original, if it is an edit
|
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 isEncrypted = mxEvent.isEncrypted();
|
||||||
const decryptedEventSource = mxEvent._clearEvent; // FIXME: _clearEvent is private
|
const decryptedEventSource = mxEvent.clearEvent; // FIXME: clearEvent is private
|
||||||
const originalEventSource = mxEvent.event;
|
const originalEventSource = mxEvent.event;
|
||||||
|
|
||||||
if (isEncrypted) {
|
if (isEncrypted) {
|
||||||
|
|
Loading…
Reference in a new issue