Allow Element Call to learn the room name (#30213)
The latest mobile designs for Element Call have it displaying the room name in an "app bar". So the Element Call widget will soon start requesting the capability to learn the room name, and Element Web should auto-approve this capability.
This commit is contained in:
@@ -123,6 +123,9 @@ export class StopGapWidgetDriver extends WidgetDriver {
|
|||||||
this.allowedCapabilities.add(MatrixCapabilities.MSC4157SendDelayedEvent);
|
this.allowedCapabilities.add(MatrixCapabilities.MSC4157SendDelayedEvent);
|
||||||
this.allowedCapabilities.add(MatrixCapabilities.MSC4157UpdateDelayedEvent);
|
this.allowedCapabilities.add(MatrixCapabilities.MSC4157UpdateDelayedEvent);
|
||||||
|
|
||||||
|
this.allowedCapabilities.add(
|
||||||
|
WidgetEventCapability.forStateEvent(EventDirection.Receive, EventType.RoomName).raw,
|
||||||
|
);
|
||||||
this.allowedCapabilities.add(
|
this.allowedCapabilities.add(
|
||||||
WidgetEventCapability.forStateEvent(EventDirection.Receive, EventType.RoomMember).raw,
|
WidgetEventCapability.forStateEvent(EventDirection.Receive, EventType.RoomMember).raw,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ describe("StopGapWidgetDriver", () => {
|
|||||||
"org.matrix.msc2762.send.event:m.room.redaction",
|
"org.matrix.msc2762.send.event:m.room.redaction",
|
||||||
"org.matrix.msc2762.receive.event:m.room.redaction",
|
"org.matrix.msc2762.receive.event:m.room.redaction",
|
||||||
"org.matrix.msc2762.receive.state_event:m.room.create",
|
"org.matrix.msc2762.receive.state_event:m.room.create",
|
||||||
|
"org.matrix.msc2762.receive.state_event:m.room.name",
|
||||||
"org.matrix.msc2762.receive.state_event:m.room.member",
|
"org.matrix.msc2762.receive.state_event:m.room.member",
|
||||||
"org.matrix.msc2762.receive.state_event:org.matrix.msc3401.call",
|
"org.matrix.msc2762.receive.state_event:org.matrix.msc3401.call",
|
||||||
"org.matrix.msc2762.send.state_event:org.matrix.msc3401.call.member#@alice:example.org",
|
"org.matrix.msc2762.send.state_event:org.matrix.msc3401.call.member#@alice:example.org",
|
||||||
|
|||||||
Reference in New Issue
Block a user