Use client.decryptEvent to avoid accessing js-sdk private members
This commit is contained in:
parent
871c48f69b
commit
1cfd4b6e1a
5 changed files with 14 additions and 28 deletions
|
@ -40,7 +40,7 @@ export default class ViewSourceEvent extends React.PureComponent {
|
|||
|
||||
const client = MatrixClientPeg.get();
|
||||
if (mxEvent.shouldAttemptDecryption()) {
|
||||
mxEvent.attemptDecryption(client._client._crypto);
|
||||
client.decryptEvent(mxEvent);
|
||||
}
|
||||
|
||||
if (mxEvent.isBeingDecrypted()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue