Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Set session if low level is active
Browse files Browse the repository at this point in the history
  • Loading branch information
alimtunc committed Jul 4, 2023
1 parent a9520a3 commit aa5468f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions core/client/ui/user-panel.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion core/modules/meet/client/meet-low-level.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit aa5468f

Please sign in to comment.