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 renamed decrypt event method
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user