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);