Skip to content
Snippets Groups Projects
Commit 383bcfd4 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

fix: notifications

do not show notifications for outgoing calls

Change-Id: Id166d93785456da3884c3d55a4b15a1dc1be707b
parent 029ffa88
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment