mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Merge pull request #5581 from matrix-org/travis/widgets/sticker-picker
Allow stickerpickers the legacy "visibility" capability
This commit is contained in:
commit
d6dbe5596a
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue