Merge pull request #5581 from matrix-org/travis/widgets/sticker-picker

Allow stickerpickers the legacy "visibility" capability
This commit is contained in:
Travis Ralston 2021-01-28 07:46:17 -07:00 committed by GitHub
commit d6dbe5596a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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");
}
}