feat: logout route and button

This commit is contained in:
efim
2023-11-14 04:18:25 +00:00
parent 1297fcf35d
commit 83e81ec011
9 changed files with 130 additions and 22 deletions

View File

@@ -117,6 +117,16 @@ gestureIteration:
r.CurrentSpeaker = nextSpeakerId
}
func (r *Room) PersonToStandUpFromTable(p PersonId) {
r.ReleaseHand(p)
if slices.Contains(r.Paricipants, p) {
updated := slices.DeleteFunc(r.Paricipants, func(sittingPerson PersonId) bool {
return sittingPerson == p
})
r.Paricipants = updated
}
}
// find place to start - separate function
// current speaker level, searched gesture level, room marks
// if search level >= current speaker start from speaker