fix(Cli): add an incomplet call view when & conference is initialized

This commit is contained in:
nicolas 2017-09-08 11:42:04 +02:00
parent b780af0b98
commit 4a927cfdda

View file

@ -113,10 +113,13 @@ static void cliInitiateConference (QHash<QString, QString> &args) {
shared_ptr<linphone::Conference> conference = core->getConference();
const QString id = args["conference-id"];
App *app = App::getInstance();
if (conference) {
if (conference->getId() == ::Utils::appStringToCoreString(id)) {
qInfo() << QStringLiteral("Conference `%1` already exists.").arg(id);
// TODO: Set the view to the "waiting call view".
app->smartShowWindow(app->getCallsWindow());
return;
}
@ -133,9 +136,8 @@ static void cliInitiateConference (QHash<QString, QString> &args) {
qWarning() << QStringLiteral("Unable to join created conference: `%1`.").arg(id);
return;
}
App *app = App::getInstance();
app->smartShowWindow(app->getCallsWindow());
// TODO: Set the view to the "waiting call view".
app->smartShowWindow(app->getCallsWindow());
}
// =============================================================================