Allow stickerpickers the legacy "visibility" capability

Fixes https://github.com/vector-im/element-web/issues/16237
pull/21833/head
Travis Ralston 2021-01-27 14:22:55 -07:00
parent 33a86f6cbe
commit edb363b751
1 changed files with 4 additions and 0 deletions

View File

@ -71,6 +71,10 @@ export class StopGapWidgetDriver extends WidgetDriver {
const stickerSendingCap = WidgetEventCapability.forRoomEvent(EventDirection.Send, EventType.Sticker).raw; const stickerSendingCap = WidgetEventCapability.forRoomEvent(EventDirection.Send, EventType.Sticker).raw;
this.allowedCapabilities.add(MatrixCapabilities.StickerSending); // legacy as far as MSC2762 is concerned this.allowedCapabilities.add(MatrixCapabilities.StickerSending); // legacy as far as MSC2762 is concerned
this.allowedCapabilities.add(stickerSendingCap); this.allowedCapabilities.add(stickerSendingCap);
// Auto-approve the legacy visibility capability. We send it regardless of capability.
// Widgets don't technically need to request this capability, but Scalar still does.
this.allowedCapabilities.add("visibility");
} }
} }