Commit dba80222 authored by Nicolas Jager's avatar Nicolas Jager Committed by Guillaume Roguez

call::Info, isAudioOnly inform about AUDIO_ONLY

Change-Id: I6a65c695fe43154c2445ddffe3b57ffbb679ca92
Reviewed-by: Guillaume Roguez's avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent 0c9cebfb
......@@ -134,6 +134,7 @@ struct Info
bool isOutoging;
bool audioMuted = false;
bool videoMuted = false;
bool isAudioOnly = false;
};
static inline bool
......
......@@ -370,7 +370,8 @@ NewCallModelPimpl::slotIncomingCall(const std::string& accountId, const std::str
{
if (linked.owner.id != accountId) return;
qDebug() << "NewCallModelPimpl::slotIncomingCall";
// do not use auto here (QDBusPendingReply<MapStringString>)
MapStringString callDetails = CallManager::instance().getCallDetails(callId.c_str());
auto callInfo = std::make_shared<call::Info>();
callInfo->id = callId;
......@@ -378,6 +379,7 @@ NewCallModelPimpl::slotIncomingCall(const std::string& accountId, const std::str
callInfo->isOutoging = false;
callInfo->status = call::Status::INCOMING_RINGING;
callInfo->type = call::Type::DIALOG;
callInfo->isAudioOnly = callDetails["AUDIO_ONLY"] == "true" ? true : false;
calls.emplace(callId, std::move(callInfo));
emit linked.newIncomingCall(fromId, callId);
......
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