feat: release hand endpoint & button
This commit is contained in:
@@ -35,11 +35,10 @@ func (r *Room)InitMaps() {
|
||||
// if you are speaking - change nothing
|
||||
// if nobody is speaking, set this person as a first speaker
|
||||
func (r *Room) RaiseHand(p PersonId, gesture HandGesture) Room {
|
||||
// TODO This is temporary
|
||||
// if (r.CurrentSpeaker == p) {
|
||||
// // if person already speaking, should first end speaking
|
||||
// return *r
|
||||
// }
|
||||
if (r.CurrentSpeaker == p) {
|
||||
// if person already speaking, should first end speaking
|
||||
return *r
|
||||
}
|
||||
r.ParticipantHands[p] = gesture
|
||||
if r.CurrentSpeaker == PersonId(0) {
|
||||
r.CurrentSpeaker = p
|
||||
|
||||
Reference in New Issue
Block a user