mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Add a settings store check to make the menu code easy to find again
... and because we probably should check this...
This commit is contained in:
parent
e52c7fe03a
commit
b2bf5aacc0
@ -110,7 +110,8 @@ const WidgetContextMenu: React.FC<IProps> = ({
|
||||
}
|
||||
|
||||
let snapshotButton;
|
||||
if (widgetMessaging?.hasCapability(MatrixCapabilities.Screenshots)) {
|
||||
const screenshotsEnabled = SettingsStore.getValue("enableWidgetScreenshots");
|
||||
if (screenshotsEnabled && widgetMessaging?.hasCapability(MatrixCapabilities.Screenshots)) {
|
||||
const onSnapshotClick = () => {
|
||||
widgetMessaging?.takeScreenshot().then(data => {
|
||||
dis.dispatch({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user