Commit 383bcfd4 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

fix: notifications

do not show notifications for outgoing calls

Change-Id: Id166d93785456da3884c3d55a4b15a1dc1be707b
parent 029ffa88
......@@ -186,6 +186,15 @@ static void ReachabilityCallback(SCNetworkReachabilityRef __unused target, SCNet
if(!shouldNotify) {
return;
}
bool isIncoming = false;
auto callModel = lrc->getAccountModel()
.getAccountInfo(accountId).callModel.get();
if(callModel->hasCall(conversationInfo.callId)) {
isIncoming = !callModel->getCall(conversationInfo.callId).isOutgoing;
}
if(!isIncoming) {
return;
}
NSString* name = bestIDForConversation(conversationInfo, *lrc->getAccountModel().getAccountInfo(accountId).conversationModel.get());
NSUserNotification* notification = [[NSUserNotification alloc] init];
......
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