From 555bcc6010c19b019a96fec08db4dbd4346fc44b Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 29 Sep 2020 15:32:18 -0600 Subject: [PATCH] Document remaining (known) cases to fix --- src/CallHandler.tsx | 1 + src/components/views/right_panel/WidgetCard.tsx | 1 + src/components/views/rooms/Stickerpicker.js | 1 + 3 files changed, 3 insertions(+) diff --git a/src/CallHandler.tsx b/src/CallHandler.tsx index 2ff018d4d6..849859eb20 100644 --- a/src/CallHandler.tsx +++ b/src/CallHandler.tsx @@ -495,6 +495,7 @@ export default class CallHandler { const roomInfo = WidgetStore.instance.getRoom(roomId); if (!roomInfo) return; // "should never happen" clauses go here + // TODO: [TravisR] Fix this const jitsiWidgets = roomInfo.widgets.filter(w => WidgetType.JITSI.matches(w.type)); jitsiWidgets.forEach(w => { const messaging = ActiveWidgetStore.getWidgetMessaging(w.id); diff --git a/src/components/views/right_panel/WidgetCard.tsx b/src/components/views/right_panel/WidgetCard.tsx index 1677494708..b0eefb0fed 100644 --- a/src/components/views/right_panel/WidgetCard.tsx +++ b/src/components/views/right_panel/WidgetCard.tsx @@ -77,6 +77,7 @@ const WidgetCard: React.FC = ({ room, widgetId, onClose }) => { let contextMenu; if (menuDisplayed) { let snapshotButton; + // TODO: [TravisR] Fix this if (ActiveWidgetStore.widgetHasCapability(app.id, Capability.Screenshot)) { const onSnapshotClick = () => { WidgetUtils.snapshotWidget(app); diff --git a/src/components/views/rooms/Stickerpicker.js b/src/components/views/rooms/Stickerpicker.js index dba25a94cf..548e1d02bb 100644 --- a/src/components/views/rooms/Stickerpicker.js +++ b/src/components/views/rooms/Stickerpicker.js @@ -212,6 +212,7 @@ export default class Stickerpicker extends React.Component { _sendVisibilityToWidget(visible) { if (!this.state.stickerpickerWidget) return; + // TODO: [TravisR] Fix this const widgetMessaging = ActiveWidgetStore.getWidgetMessaging(this.state.stickerpickerWidget.id); if (widgetMessaging && visible !== this._prevSentVisibility) { widgetMessaging.sendVisibility(visible);