Skip to content
Snippets Groups Projects
Commit db6ca57b authored by Sébastien Blin's avatar Sébastien Blin Committed by Andreas Traczyk
Browse files

settings: take into account allowIncoming for non trusted peers

Change-Id: I26313ee6c6e39626253cc5baf5ecd725760d99e9
parent 62e10618
No related branches found
No related tags found
No related merge requests found
......@@ -654,6 +654,11 @@ NewCallModelPimpl::slotIncomingCall(const std::string& accountId, const std::str
callInfo->isAudioOnly = callDetails["AUDIO_ONLY"] == "true" ? true : false;
calls.emplace(callId, std::move(callInfo));
if (!linked.owner.confProperties.allowIncoming) {
linked.refuse(callId);
return;
}
emit linked.newIncomingCall(fromId, callId);
// HACK. BECAUSE THE DAEMON DOESN'T HANDLE THIS CASE!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment