1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

use renamed decrypt event method

This commit is contained in:
Germain Souquet
2021-05-18 13:01:38 +01:00
parent 1cfd4b6e1a
commit f9f10de0da
5 changed files with 8 additions and 14 deletions

View File

@@ -124,10 +124,8 @@ export default class MessageActionBar extends React.PureComponent {
this.props.mxEvent.on("Event.status", this.onSent);
}
if (this.props.mxEvent.shouldAttemptDecryption()) {
const client = MatrixClientPeg.get();
client.decryptEvent(this.props.mxEvent);
}
const client = MatrixClientPeg.get();
client.decryptEventIfNeeded(this.props.mxEvent);
if (this.props.mxEvent.isBeingDecrypted()) {
this.props.mxEvent.once("Event.decrypted", this.onDecrypted);