Commit 4f63084e authored by Edric Milaret's avatar Edric Milaret Committed by gerrit2

call: switch to first call on hold when hanging up another

Refs #75423

Change-Id: Ifb5e09c4d1f414078352aa2134547659bec31fea
parent 3ea594a0
......@@ -261,6 +261,13 @@ CallWidget::callStateChanged(Call* call, Call::State previousState)
setActualCall(nullptr);
ui->videoWidget->hide();
displaySpinner(false);
auto onHoldCall = callModel_->getActiveCalls().first();
if (onHoldCall != nullptr) {
setActualCall(onHoldCall);
onHoldCall->performAction(Call::Action::HOLD);
}
} else if (call->state() == Call::State::HOLD) {
ui->videoWidget->hide();
} else if (call->state() == Call::State::CURRENT) {
displaySpinner(false);
ui->videoWidget->show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment