Move RequiresClient from MatrixCapabilities to ElementWidgetCapabilities (#8290)
* Move RequiresClient from MatrixCapabilities to ElementWidgetCapabilities Signed-off-by: Robin Kouwenhoven <r.kouwenhoven@outlook.com> * Replace usages of RequiresClient with new location Signed-off-by: Robin Kouwenhoven <r.kouwenhoven@outlook.com> Co-authored-by: Travis Ralston <travisr@matrix.org>
This commit is contained in:
parent
f97572f911
commit
aa33442983
3 changed files with 9 additions and 2 deletions
|
@ -49,6 +49,7 @@ import dis from "../../dispatcher/dispatcher";
|
|||
import { tryTransformPermalinkToLocalHref } from "../../utils/permalinks/Permalinks";
|
||||
import SettingsStore from "../../settings/SettingsStore";
|
||||
import { RoomViewStore } from "../RoomViewStore";
|
||||
import { ElementWidgetCapabilities } from "./ElementWidgetCapabilities";
|
||||
|
||||
// TODO: Purge this from the universe
|
||||
|
||||
|
@ -77,7 +78,7 @@ export class StopGapWidgetDriver extends WidgetDriver {
|
|||
// button if the widget says it supports screenshots.
|
||||
this.allowedCapabilities = new Set([...allowedCapabilities,
|
||||
MatrixCapabilities.Screenshots,
|
||||
MatrixCapabilities.RequiresClient]);
|
||||
ElementWidgetCapabilities.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