Merge pull request #19059 from gustavotrott/akka-reset-timer-on-switch-type

fix (akka-apps): Automatically reset values upon switching between Stopwatch and Timer
This commit is contained in:
Gustavo Trott 2023-11-02 10:52:46 -03:00 committed by GitHub
commit 353a6e36f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,7 @@ trait SwitchTimerReqMsgHdlr extends RightsManagementTrait {
} else {
if (TimerModel.getStopwatch(liveMeeting.timerModel) != msg.body.stopwatch) {
TimerModel.setStopwatch(liveMeeting.timerModel, msg.body.stopwatch)
TimerModel.reset(liveMeeting.timerModel) //Reset on switch Stopwatch/Timer
if (msg.body.stopwatch) {
TimerModel.setTrack(liveMeeting.timerModel, "noTrack")
}