Replace MatrixClient.prepareToEncrypt by MatrixClient.getCrypto.prepareToEncrypt (#146)

This commit is contained in:
Florian Duros
2024-10-15 07:50:38 +00:00
committed by GitHub
parent 503d9004d1
commit bce02634f7
5 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -367,7 +367,7 @@ export default class LegacyCallHandler extends EventEmitter {
// the mapped one: that's where we'll send the events.
const cli = MatrixClientPeg.safeGet();
const room = cli.getRoom(call.roomId);
if (room) cli.prepareToEncrypt(room);
if (room) cli.getCrypto()?.prepareToEncrypt(room);
};
public getCallById(callId: string): MatrixCall | null {