- fix issue where we cannot start breakout rooms again when the first breakout session ends.

This commit is contained in:
Richard Alam 2017-08-15 12:24:21 -07:00
parent 12021fb451
commit 13b6dc065e

View File

@ -23,7 +23,17 @@ trait BreakoutRoomEndedInternalMsgHdlr {
breakoutModel.removeRoom(msg.meetingId)
}
state.update(updatedModel)
updatedModel match {
case Some(model) =>
if (model.rooms.isEmpty) {
// All breakout rooms have ended
state.update(None)
} else {
state.update(Some(model))
}
case None =>
state
}
}
}