Use client.decryptEvent to avoid accessing js-sdk private members

This commit is contained in:
Germain Souquet 2021-05-18 11:41:20 +01:00
parent 871c48f69b
commit 1cfd4b6e1a
5 changed files with 14 additions and 28 deletions

View file

@ -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()) {