Skip to content
Snippets Groups Projects
Commit 4f63084e authored by Edric Milaret's avatar Edric Milaret Committed by gerrit2
Browse files

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

Refs #75423

Change-Id: Ifb5e09c4d1f414078352aa2134547659bec31fea
parent 3ea594a0
No related branches found
No related tags found
No related merge requests found
...@@ -261,6 +261,13 @@ CallWidget::callStateChanged(Call* call, Call::State previousState) ...@@ -261,6 +261,13 @@ CallWidget::callStateChanged(Call* call, Call::State previousState)
setActualCall(nullptr); setActualCall(nullptr);
ui->videoWidget->hide(); ui->videoWidget->hide();
displaySpinner(false); 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) { } else if (call->state() == Call::State::CURRENT) {
displaySpinner(false); displaySpinner(false);
ui->videoWidget->show(); ui->videoWidget->show();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment