use renamed decrypt event method
This commit is contained in:
parent
1cfd4b6e1a
commit
f9f10de0da
5 changed files with 8 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue