You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Remove unused function
This commit is contained in:
@@ -494,16 +494,4 @@ export default class WidgetUtils {
|
|||||||
IntegrationManagers.sharedInstance().getPrimaryManager().open(room, 'type_' + app.type, app.id);
|
IntegrationManagers.sharedInstance().getPrimaryManager().open(room, 'type_' + app.type, app.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static snapshotWidget(app) {
|
|
||||||
console.log("Requesting widget snapshot");
|
|
||||||
ActiveWidgetStore.getWidgetMessaging(app.id).getScreenshot().catch((err) => {
|
|
||||||
console.error("Failed to get screenshot", err);
|
|
||||||
}).then((screenshot) => {
|
|
||||||
dis.dispatch({
|
|
||||||
action: 'picture_snapshot',
|
|
||||||
file: screenshot,
|
|
||||||
}, true);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user