Replace MatrixClient.prepareToEncrypt by MatrixClient.getCrypto.prepareToEncrypt (#146)
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user