use renamed decrypt event method
This commit is contained in:
parent
1cfd4b6e1a
commit
f9f10de0da
5 changed files with 8 additions and 14 deletions
|
@ -39,9 +39,7 @@ export default class ViewSourceEvent extends React.PureComponent {
|
|||
const {mxEvent} = this.props;
|
||||
|
||||
const client = MatrixClientPeg.get();
|
||||
if (mxEvent.shouldAttemptDecryption()) {
|
||||
client.decryptEvent(mxEvent);
|
||||
}
|
||||
client.decryptEventIfNeeded(mxEvent);
|
||||
|
||||
if (mxEvent.isBeingDecrypted()) {
|
||||
mxEvent.once("Event.decrypted", () => this.forceUpdate());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue