call-widget: auto approve file download cap to get access to avatars

This commit is contained in:
Valere 2026-04-01 10:07:14 +02:00
parent e2ffaef7c3
commit 0aceab3eaf
2 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,7 @@ export class ElementWidgetDriver extends WidgetDriver {
this.allowedCapabilities.add(MatrixCapabilities.MSC4157UpdateDelayedEvent);
this.allowedCapabilities.add(MatrixCapabilities.MSC4407SendStickyEvent);
this.allowedCapabilities.add(MatrixCapabilities.MSC4407ReceiveStickyEvent);
this.allowedCapabilities.add(MatrixCapabilities.MSC4039DownloadFile);
this.allowedCapabilities.add(
WidgetEventCapability.forStateEvent(EventDirection.Receive, EventType.RoomName).raw,

View File

@ -134,6 +134,8 @@ describe("ElementWidgetDriver", () => {
"org.matrix.msc4157.update_delayed_event",
"org.matrix.msc4407.send.sticky_event",
"org.matrix.msc4407.receive.sticky_event",
// To download avatars
"org.matrix.msc4039.download_file",
// RTC decline events (send/receive, unstable/stable)
"org.matrix.msc2762.send.event:org.matrix.msc4310.rtc.decline",
"org.matrix.msc2762.send.event:m.rtc.decline",