From f35f3da25b0f887012f1058af1e65105a3b14025 Mon Sep 17 00:00:00 2001
From: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
Date: Wed, 2 Sep 2020 15:01:03 -0400
Subject: [PATCH] call: do not play ringtone for iOS

For iOS ringtone managed by CallKit.

Change-Id: Idb603f44d94e1ad3bc1cb5ccb627997cf1b5c29f
---
 src/manager.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/manager.cpp b/src/manager.cpp
index 75b9f4cb89..d456e07572 100644
--- a/src/manager.cpp
+++ b/src/manager.cpp
@@ -1853,7 +1853,7 @@ Manager::incomingCall(Call& call, const std::string& accountId)
 
     if (not hasCurrentCall()) {
         call.setState(Call::ConnectionState::RINGING);
-#ifndef RING_UWP
+#if !defined(RING_UWP) && !(defined(TARGET_OS_IOS) && TARGET_OS_IOS)
         if (not call.getAccount().isRendezVous())
             playRingtone(accountId);
 #endif
-- 
GitLab