Replace MatrixClient.prepareToEncrypt
by MatrixClient.getCrypto.prepareToEncrypt
(#146)
This commit is contained in:
parent
503d9004d1
commit
bce02634f7
5 changed files with 6 additions and 7 deletions
|
@ -268,7 +268,7 @@ export class SendMessageComposer extends React.Component<ISendMessageComposerPro
|
|||
if (this.props.mxClient.isCryptoEnabled() && this.props.mxClient.isRoomEncrypted(this.props.room.roomId)) {
|
||||
this.prepareToEncrypt = throttle(
|
||||
() => {
|
||||
this.props.mxClient.prepareToEncrypt(this.props.room);
|
||||
this.props.mxClient.getCrypto()?.prepareToEncrypt(this.props.room);
|
||||
},
|
||||
60000,
|
||||
{ leading: true, trailing: false },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue