feat: release hand endpoint & button

This commit is contained in:
efim
2023-11-12 18:24:32 +00:00
parent b90fcc3f20
commit b1f2e896b9
5 changed files with 51 additions and 10 deletions

View File

@@ -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