Merge pull request #5582 from matrix-org/travis/widgets/fix-jitsi-unpin

Remove check that prevents Jitsi widgets from being unpinned
pull/21833/head
Travis Ralston 2021-01-27 14:59:34 -07:00 committed by GitHub
commit 61f6fa0633
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 5 deletions

View File

@ -201,11 +201,6 @@ export class WidgetLayoutStore extends ReadyWatchingStore {
const topWidgets: IApp[] = []; const topWidgets: IApp[] = [];
const rightWidgets: IApp[] = []; const rightWidgets: IApp[] = [];
for (const widget of widgets) { for (const widget of widgets) {
if (WidgetType.JITSI.matches(widget.type)) {
topWidgets.push(widget);
continue;
}
const stateContainer = roomLayout?.widgets?.[widget.id]?.container; const stateContainer = roomLayout?.widgets?.[widget.id]?.container;
const manualContainer = userLayout?.widgets?.[widget.id]?.container; const manualContainer = userLayout?.widgets?.[widget.id]?.container;
const isLegacyPinned = !!legacyPinned?.[widget.id]; const isLegacyPinned = !!legacyPinned?.[widget.id];