Implement RequiresClient capability for widgets (#7005)
This commit is contained in:
parent
68b64564c0
commit
5736fea5f3
3 changed files with 23 additions and 7 deletions
|
@ -73,7 +73,9 @@ export class StopGapWidgetDriver extends WidgetDriver {
|
|||
// Always allow screenshots to be taken because it's a client-induced flow. The widget can't
|
||||
// spew screenshots at us and can't request screenshots of us, so it's up to us to provide the
|
||||
// button if the widget says it supports screenshots.
|
||||
this.allowedCapabilities = new Set([...allowedCapabilities, MatrixCapabilities.Screenshots]);
|
||||
this.allowedCapabilities = new Set([...allowedCapabilities,
|
||||
MatrixCapabilities.Screenshots,
|
||||
MatrixCapabilities.RequiresClient]);
|
||||
|
||||
// Grant the permissions that are specific to given widget types
|
||||
if (WidgetType.JITSI.matches(this.forWidget.type) && forWidgetKind === WidgetKind.Room) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue