From aa5468fa7730ffe125d7feae76f3c29a1466cd4b Mon Sep 17 00:00:00 2001 From: Alim TUNC Date: Mon, 3 Jul 2023 17:13:15 +0200 Subject: [PATCH] Set session if low level is active --- core/client/ui/user-panel.js | 3 +-- core/modules/meet/client/meet-low-level.js | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/core/client/ui/user-panel.js b/core/client/ui/user-panel.js index fd80f284..8a06ffad 100644 --- a/core/client/ui/user-panel.js +++ b/core/client/ui/user-panel.js @@ -1,7 +1,6 @@ import { guestAllowed, permissionTypes } from '../../lib/misc' -// TODO: Replace it with meetLowLevel -const talking = () => true +const talking = () => Session.get('isLowLevelActive') Template.userPanel.onCreated(function () { if (Meteor.settings.public.features?.userPanel?.enabled === false) return diff --git a/core/modules/meet/client/meet-low-level.js b/core/modules/meet/client/meet-low-level.js index be35990a..e6617109 100644 --- a/core/modules/meet/client/meet-low-level.js +++ b/core/modules/meet/client/meet-low-level.js @@ -75,7 +75,10 @@ Template.meetLowLevel.helpers({ return Template.instance().avatarURL.get() }, isActive() { - return Template.instance().connection.get() !== undefined && getCallCount(Template.instance()) > 0 + const isActive = Template.instance().connection.get() !== undefined && getCallCount(Template.instance()) > 0 + + Session.set('isLowLevelActive', isActive) + return isActive }, remoteTracks() { console.log(