Skip to content
Snippets Groups Projects
Commit dba80222 authored by Nicolas Jager's avatar Nicolas Jager Committed by Guillaume Roguez
Browse files

call::Info, isAudioOnly inform about AUDIO_ONLY


Change-Id: I6a65c695fe43154c2445ddffe3b57ffbb679ca92
Reviewed-by: default avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent 0c9cebfb
Branches
No related tags found
No related merge requests found
...@@ -134,6 +134,7 @@ struct Info ...@@ -134,6 +134,7 @@ struct Info
bool isOutoging; bool isOutoging;
bool audioMuted = false; bool audioMuted = false;
bool videoMuted = false; bool videoMuted = false;
bool isAudioOnly = false;
}; };
static inline bool static inline bool
......
...@@ -370,7 +370,8 @@ NewCallModelPimpl::slotIncomingCall(const std::string& accountId, const std::str ...@@ -370,7 +370,8 @@ NewCallModelPimpl::slotIncomingCall(const std::string& accountId, const std::str
{ {
if (linked.owner.id != accountId) return; 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>(); auto callInfo = std::make_shared<call::Info>();
callInfo->id = callId; callInfo->id = callId;
...@@ -378,6 +379,7 @@ NewCallModelPimpl::slotIncomingCall(const std::string& accountId, const std::str ...@@ -378,6 +379,7 @@ NewCallModelPimpl::slotIncomingCall(const std::string& accountId, const std::str
callInfo->isOutoging = false; callInfo->isOutoging = false;
callInfo->status = call::Status::INCOMING_RINGING; callInfo->status = call::Status::INCOMING_RINGING;
callInfo->type = call::Type::DIALOG; callInfo->type = call::Type::DIALOG;
callInfo->isAudioOnly = callDetails["AUDIO_ONLY"] == "true" ? true : false;
calls.emplace(callId, std::move(callInfo)); calls.emplace(callId, std::move(callInfo));
emit linked.newIncomingCall(fromId, callId); emit linked.newIncomingCall(fromId, callId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment