From 08b067fd682e5cf88b0e7b20f0e4f840f26746e1 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 27 Jan 2021 14:31:48 -0700 Subject: [PATCH] Remove check that prevents Jitsi widgets from being unpinned Later in the code we do a conditional on the widget type to auto-pin the widget, so we don't need this one to force the widget higher. Fixes https://github.com/vector-im/element-web/issues/16280 --- src/stores/widgets/WidgetLayoutStore.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/stores/widgets/WidgetLayoutStore.ts b/src/stores/widgets/WidgetLayoutStore.ts index b6320defb9..86ce9c97d4 100644 --- a/src/stores/widgets/WidgetLayoutStore.ts +++ b/src/stores/widgets/WidgetLayoutStore.ts @@ -201,11 +201,6 @@ export class WidgetLayoutStore extends ReadyWatchingStore { const topWidgets: IApp[] = []; const rightWidgets: IApp[] = []; for (const widget of widgets) { - if (WidgetType.JITSI.matches(widget.type)) { - topWidgets.push(widget); - continue; - } - const stateContainer = roomLayout?.widgets?.[widget.id]?.container; const manualContainer = userLayout?.widgets?.[widget.id]?.container; const isLegacyPinned = !!legacyPinned?.[widget.id];