multi is false by default
This commit is contained in:
parent
ecacf5010b
commit
a504be308c
@ -145,15 +145,15 @@ Meteor.methods
|
|||||||
u = Meteor.Users.findOne userId: voiceUserObject.web_userid
|
u = Meteor.Users.findOne userId: voiceUserObject.web_userid
|
||||||
if u?
|
if u?
|
||||||
if voiceUserObject.talking?
|
if voiceUserObject.talking?
|
||||||
Meteor.Users.update({meetingId: meetingId ,userId: voiceUserObject.web_userid}, {$set: {'user.voiceUser.talking':voiceUserObject.talking}}, {multi: false}) # talking
|
Meteor.Users.update({meetingId: meetingId ,userId: voiceUserObject.web_userid}, {$set: {'user.voiceUser.talking':voiceUserObject.talking}}) # talking
|
||||||
if voiceUserObject.joined?
|
if voiceUserObject.joined?
|
||||||
Meteor.Users.update({meetingId: meetingId ,userId: voiceUserObject.web_userid}, {$set: {'user.voiceUser.joined':voiceUserObject.joined}}, {multi: false}) # joined
|
Meteor.Users.update({meetingId: meetingId ,userId: voiceUserObject.web_userid}, {$set: {'user.voiceUser.joined':voiceUserObject.joined}}) # joined
|
||||||
if voiceUserObject.locked?
|
if voiceUserObject.locked?
|
||||||
Meteor.Users.update({meetingId: meetingId ,userId: voiceUserObject.web_userid}, {$set: {'user.voiceUser.locked':voiceUserObject.locked}}, {multi: false}) # locked
|
Meteor.Users.update({meetingId: meetingId ,userId: voiceUserObject.web_userid}, {$set: {'user.voiceUser.locked':voiceUserObject.locked}}) # locked
|
||||||
if voiceUserObject.muted?
|
if voiceUserObject.muted?
|
||||||
Meteor.Users.update({meetingId: meetingId ,userId: voiceUserObject.web_userid}, {$set: {'user.voiceUser.muted':voiceUserObject.muted}}, {multi: false}) # muted
|
Meteor.Users.update({meetingId: meetingId ,userId: voiceUserObject.web_userid}, {$set: {'user.voiceUser.muted':voiceUserObject.muted}}) # muted
|
||||||
if voiceUserObject.listenOnly?
|
if voiceUserObject.listenOnly?
|
||||||
Meteor.Users.update({meetingId: meetingId ,userId: voiceUserObject.web_userid}, {$set: {'user.listenOnly':voiceUserObject.listenOnly}}, {multi: false}) # muted
|
Meteor.Users.update({meetingId: meetingId ,userId: voiceUserObject.web_userid}, {$set: {'user.listenOnly':voiceUserObject.listenOnly}}) # muted
|
||||||
else
|
else
|
||||||
Meteor.log.info "ERROR! did not find such voiceUser!"
|
Meteor.log.info "ERROR! did not find such voiceUser!"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user