Allow Element Call to recieve/send call decline events (#30694)

* Allow Element Call to recieve/send call decline events

* fix bad copy paste in test
This commit is contained in:
Valere Fedronic
2025-09-09 16:16:19 +02:00
committed by GitHub
parent 733007cb28
commit d594ce479c
2 changed files with 8 additions and 0 deletions

View File

@@ -190,6 +190,9 @@ export class StopGapWidgetDriver extends WidgetDriver {
EventType.Reaction,
EventType.RoomRedaction,
"io.element.call.reaction",
// MSC4310: Add dev and final event to ease future transition,
EventType.RTCDecline,
"m.rtc.decline",
];
for (const eventType of [...sendRoomEvents, ...sendRecvRoomEvents])
this.allowedCapabilities.add(WidgetEventCapability.forRoomEvent(EventDirection.Send, eventType).raw);

View File

@@ -134,6 +134,11 @@ describe("StopGapWidgetDriver", () => {
"org.matrix.msc3819.receive.to_device:m.call.replaces",
"org.matrix.msc4157.send.delayed_event",
"org.matrix.msc4157.update_delayed_event",
// RTC decline events
"org.matrix.msc2762.send.event:org.matrix.msc4310.rtc.decline",
"org.matrix.msc2762.receive.event:org.matrix.msc4310.rtc.decline",
"org.matrix.msc2762.send.event:m.rtc.decline",
"org.matrix.msc2762.receive.event:m.rtc.decline",
]);
const approvedCapabilities = await driver.validateCapabilities(requestedCapabilities);