Skip to content

Commit 9c4f21b

Browse files
committed
Throw error when legacy call was used
1 parent a45de2f commit 9c4f21b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/webrtc/call.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2514,7 +2514,9 @@ export class MatrixCall extends TypedEventEmitter<CallEvent, CallEventHandlerMap
25142514
return;
25152515
}
25162516

2517-
// Here we were calling `MatrixClient.encryptAndSendToDevices` which is not supported by the rust cryptography.
2517+
// TODO: Here we were sending the event to the opponent's device as a to-device message with MatrixClient.encryptAndSendToDevices.
2518+
// However due to the switch to Rust cryptography we need to migrate to the new encryptToDeviceMessages API.
2519+
throw new Error("Unimplemented");
25182520
} else {
25192521
await this.client.sendToDevice(
25202522
eventType,

0 commit comments

Comments
 (0)