2014-09-24 04:40:59 +08:00
|
|
|
Template.displayUserIcons.events
|
2014-11-06 23:27:43 +08:00
|
|
|
'click .muteIcon': (event) ->
|
|
|
|
toggleMic @
|
|
|
|
|
2014-09-24 04:40:59 +08:00
|
|
|
'click .raisedHandIcon': (event) ->
|
2014-09-25 03:55:55 +08:00
|
|
|
# the function to call 'userLowerHand'
|
|
|
|
# the meeting id
|
|
|
|
# the _id of the person whose land is to be lowered
|
|
|
|
# the userId of the person who is lowering the hand
|
|
|
|
console.log "lower hand- client click handler"
|
2014-11-22 01:36:21 +08:00
|
|
|
Meteor.call('userLowerHand', getInSession("meetingId"), @userId, getInSession("userId"), getInSession("authToken"))
|
2015-04-24 02:02:56 +08:00
|
|
|
|
|
|
|
Template.displayUserIcons.helpers
|
|
|
|
userLockedIconApplicable: (userId) ->
|
|
|
|
# the lock settings affect the user (and requiire a lock icon) if
|
|
|
|
# the user is set to be locked and there is a relevant lock in place
|
|
|
|
locked = BBB.getUser(userId)?.user.locked
|
|
|
|
settings = Meteor.Meetings.findOne()?.roomLockSettings
|
|
|
|
lockInAction = settings.disablePrivChat or
|
|
|
|
settings.disableCam or
|
|
|
|
settings.disableMic or
|
|
|
|
settings.lockedLayout or
|
|
|
|
settings.disablePubChat
|
|
|
|
return locked and lockInAction
|