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
Document remaining (known) cases to fix
This commit is contained in:
@@ -495,6 +495,7 @@ export default class CallHandler {
|
|||||||
const roomInfo = WidgetStore.instance.getRoom(roomId);
|
const roomInfo = WidgetStore.instance.getRoom(roomId);
|
||||||
if (!roomInfo) return; // "should never happen" clauses go here
|
if (!roomInfo) return; // "should never happen" clauses go here
|
||||||
|
|
||||||
|
// TODO: [TravisR] Fix this
|
||||||
const jitsiWidgets = roomInfo.widgets.filter(w => WidgetType.JITSI.matches(w.type));
|
const jitsiWidgets = roomInfo.widgets.filter(w => WidgetType.JITSI.matches(w.type));
|
||||||
jitsiWidgets.forEach(w => {
|
jitsiWidgets.forEach(w => {
|
||||||
const messaging = ActiveWidgetStore.getWidgetMessaging(w.id);
|
const messaging = ActiveWidgetStore.getWidgetMessaging(w.id);
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ const WidgetCard: React.FC<IProps> = ({ room, widgetId, onClose }) => {
|
|||||||
let contextMenu;
|
let contextMenu;
|
||||||
if (menuDisplayed) {
|
if (menuDisplayed) {
|
||||||
let snapshotButton;
|
let snapshotButton;
|
||||||
|
// TODO: [TravisR] Fix this
|
||||||
if (ActiveWidgetStore.widgetHasCapability(app.id, Capability.Screenshot)) {
|
if (ActiveWidgetStore.widgetHasCapability(app.id, Capability.Screenshot)) {
|
||||||
const onSnapshotClick = () => {
|
const onSnapshotClick = () => {
|
||||||
WidgetUtils.snapshotWidget(app);
|
WidgetUtils.snapshotWidget(app);
|
||||||
|
|||||||
@@ -212,6 +212,7 @@ export default class Stickerpicker extends React.Component {
|
|||||||
|
|
||||||
_sendVisibilityToWidget(visible) {
|
_sendVisibilityToWidget(visible) {
|
||||||
if (!this.state.stickerpickerWidget) return;
|
if (!this.state.stickerpickerWidget) return;
|
||||||
|
// TODO: [TravisR] Fix this
|
||||||
const widgetMessaging = ActiveWidgetStore.getWidgetMessaging(this.state.stickerpickerWidget.id);
|
const widgetMessaging = ActiveWidgetStore.getWidgetMessaging(this.state.stickerpickerWidget.id);
|
||||||
if (widgetMessaging && visible !== this._prevSentVisibility) {
|
if (widgetMessaging && visible !== this._prevSentVisibility) {
|
||||||
widgetMessaging.sendVisibility(visible);
|
widgetMessaging.sendVisibility(visible);
|
||||||
|
|||||||
Reference in New Issue
Block a user