unfocus method

void unfocus(
  1. Participant participant
)

Unfocuses participant, which means putting it in its default group.

Implementation

void unfocus(Participant participant) {
  if (focused.contains(participant)) {
    _putVideoFrom(participant, focused);
    if (focused.isEmpty) {
      unfocusAll();
    }

    _ensureCorrectGrouping();
  } else {
    if (!paneled.contains(participant)) {
      _putVideoTo(participant, paneled);
      _ensureCorrectGrouping();
    }
  }
}