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

Commit

Permalink
Let Element Call widget receive m.room.create
Browse files Browse the repository at this point in the history
This allows the widget to check the room version without prompting the
user to grant that capability, so the widget can know about
version-specific auth rules (namely MSC3779).
  • Loading branch information
AndrewFerr committed Jul 5, 2024
1 parent a7542dc commit a69f9d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/stores/widgets/StopGapWidgetDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ export class StopGapWidgetDriver extends WidgetDriver {
this.allowedCapabilities.add(
WidgetEventCapability.forStateEvent(EventDirection.Receive, "org.matrix.msc3401.call.member").raw,
);
// for determining auth rules specific to the room version
this.allowedCapabilities.add(
WidgetEventCapability.forStateEvent(EventDirection.Receive, EventType.RoomCreate).raw,
);

const sendRecvRoomEvents = ["io.element.call.encryption_keys"];
for (const eventType of sendRecvRoomEvents) {
Expand Down

0 comments on commit a69f9d5

Please sign in to comment.