Commit db6ca57b authored by Sébastien Blin's avatar Sébastien Blin Committed by Andreas Traczyk

settings: take into account allowIncoming for non trusted peers

Change-Id: I26313ee6c6e39626253cc5baf5ecd725760d99e9
parent 62e10618
......@@ -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!
......
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