Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Support for E2EE in Element Call #11492

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/models/Call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ export class ElementCall extends Call {
analyticsID,
});

if (client.isRoomEncrypted(groupCall.room.roomId)) params.append("perParticipantE2EE", "");
if (SettingsStore.getValue("fallbackICEServerAllowed")) params.append("allowIceFallback", "");
if (SettingsStore.getValue("feature_allow_screen_share_only_mode")) params.append("allowVoipWithNoMedia", "");

Expand Down
6 changes: 6 additions & 0 deletions src/stores/widgets/StopGapWidgetDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ export class StopGapWidgetDriver extends WidgetDriver {
WidgetEventCapability.forStateEvent(EventDirection.Receive, "org.matrix.msc3401.call.member").raw,
);

const sendRecvRoomEvents = ["io.element.call.encryption_key"];
for (const eventType of sendRecvRoomEvents) {
this.allowedCapabilities.add(WidgetEventCapability.forRoomEvent(EventDirection.Send, eventType).raw);
this.allowedCapabilities.add(WidgetEventCapability.forRoomEvent(EventDirection.Receive, eventType).raw);
}

const sendRecvToDevice = [
EventType.CallInvite,
EventType.CallCandidates,
Expand Down
Loading