You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Use client.decryptEvent to avoid accessing js-sdk private members
This commit is contained in:
@@ -126,7 +126,7 @@ export default class MessageActionBar extends React.PureComponent {
|
||||
|
||||
if (this.props.mxEvent.shouldAttemptDecryption()) {
|
||||
const client = MatrixClientPeg.get();
|
||||
this.props.mxEvent.attemptDecryption(client._crypto);
|
||||
client.decryptEvent(this.props.mxEvent);
|
||||
}
|
||||
|
||||
if (this.props.mxEvent.isBeingDecrypted()) {
|
||||
|
||||
Reference in New Issue
Block a user