From edb363b75156f52550958e1de06396b9bad818a5 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 27 Jan 2021 14:22:55 -0700 Subject: [PATCH] Allow stickerpickers the legacy "visibility" capability Fixes https://github.com/vector-im/element-web/issues/16237 --- src/stores/widgets/StopGapWidgetDriver.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stores/widgets/StopGapWidgetDriver.ts b/src/stores/widgets/StopGapWidgetDriver.ts index 8baea97fe0..8a286d909b 100644 --- a/src/stores/widgets/StopGapWidgetDriver.ts +++ b/src/stores/widgets/StopGapWidgetDriver.ts @@ -71,6 +71,10 @@ export class StopGapWidgetDriver extends WidgetDriver { const stickerSendingCap = WidgetEventCapability.forRoomEvent(EventDirection.Send, EventType.Sticker).raw; this.allowedCapabilities.add(MatrixCapabilities.StickerSending); // legacy as far as MSC2762 is concerned 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"); } }