mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
Merge pull request #549 from matrix-org/markjh/disable_conferencing_for_e2e
Disable conference calling for encrypted rooms
This commit is contained in:
commit
45bd234c38
1 changed files with 12 additions and 0 deletions
|
@ -264,6 +264,18 @@ function _onAction(payload) {
|
||||||
description: "You cannot place VoIP calls in this browser."
|
description: "You cannot place VoIP calls in this browser."
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
else if (MatrixClientPeg.get().isRoomEncrypted(payload.room_id)) {
|
||||||
|
// Conference calls are implemented by sending the media to central
|
||||||
|
// server which combines the audio from all the participants together
|
||||||
|
// into a single stream. This is incompatible with end-to-end encryption
|
||||||
|
// because a central server would be decrypting the audio for each
|
||||||
|
// participant.
|
||||||
|
// Therefore we disable conference calling in E2E rooms.
|
||||||
|
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||||
|
Modal.createDialog(ErrorDialog, {
|
||||||
|
description: "Conference calls are not supported in encrypted rooms",
|
||||||
|
});
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
var QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
|
var QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
|
||||||
Modal.createDialog(QuestionDialog, {
|
Modal.createDialog(QuestionDialog, {
|
||||||
|
|
Loading…
Reference in a new issue