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:
@@ -190,6 +190,9 @@ export class StopGapWidgetDriver extends WidgetDriver {
|
|||||||
EventType.Reaction,
|
EventType.Reaction,
|
||||||
EventType.RoomRedaction,
|
EventType.RoomRedaction,
|
||||||
"io.element.call.reaction",
|
"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])
|
for (const eventType of [...sendRoomEvents, ...sendRecvRoomEvents])
|
||||||
this.allowedCapabilities.add(WidgetEventCapability.forRoomEvent(EventDirection.Send, eventType).raw);
|
this.allowedCapabilities.add(WidgetEventCapability.forRoomEvent(EventDirection.Send, eventType).raw);
|
||||||
|
|||||||
@@ -134,6 +134,11 @@ describe("StopGapWidgetDriver", () => {
|
|||||||
"org.matrix.msc3819.receive.to_device:m.call.replaces",
|
"org.matrix.msc3819.receive.to_device:m.call.replaces",
|
||||||
"org.matrix.msc4157.send.delayed_event",
|
"org.matrix.msc4157.send.delayed_event",
|
||||||
"org.matrix.msc4157.update_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);
|
const approvedCapabilities = await driver.validateCapabilities(requestedCapabilities);
|
||||||
|
|||||||
Reference in New Issue
Block a user