Commit a0c3cd72 authored by Sébastien Blin's avatar Sébastien Blin

manager: do not delete the conference when rendez-vous has only one user

Change-Id: Idf1063901cf2338ff7a4f5f8aa6ecee588dcb6c3
Gitlab: #269
parent e23cbc96
......@@ -535,18 +535,15 @@ Manager::ManagerPimpl::processRemainingParticipants(Conference& conf)
// the conference is over
auto p = participants.begin();
if (auto call = base_.getCallFromCallID(*p)) {
call->setConfId("");
// if we are not listening to this conference and not a rendez-vous
auto isRdv = false;
if (auto acc = std::dynamic_pointer_cast<JamiAccount>(base_.getAccount(call->getAccountId())))
isRdv = acc->getAccountDetails()[Conf::CONFIG_ACCOUNT_ISRENDEZVOUS] == TRUE_STR;
if (!isRdv) {
if (current_call_id != conf.getConfID())
base_.onHoldCall(call->getCallId());
else
switchCall(call);
}
if(call->getAccount().isRendezVous())
return;
call->setConfId("");
if (current_call_id != conf.getConfID())
base_.onHoldCall(call->getCallId());
else
switchCall(call);
}
JAMI_DBG("No remaining participants, remove conference");
......
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