From 381d661a7975d8d4abfc5711473ab4d77d7de371 Mon Sep 17 00:00:00 2001
From: Mohamed Chibani <mohamed.chibani@savoirfairelinux.com>
Date: Fri, 21 Aug 2020 09:10:03 -0400
Subject: [PATCH] rendez-vous: do not play the ringtone

The ringtone on incoming calls must not be played
if the RendezVous mode is enabled.

Gitlab: #281
Change-Id: I311900eeb85f279c65d63aceceecd2185c22efb5
---
 src/manager.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/manager.cpp b/src/manager.cpp
index 0ea8a7bb20..5d580180cb 100644
--- a/src/manager.cpp
+++ b/src/manager.cpp
@@ -1857,7 +1857,8 @@ Manager::incomingCall(Call& call, const std::string& accountId)
     if (not hasCurrentCall()) {
         call.setState(Call::ConnectionState::RINGING);
 #ifndef RING_UWP
-        playRingtone(accountId);
+        if (not call.getAccount().isRendezVous())
+            playRingtone(accountId);
 #endif
     }
 
-- 
GitLab