rendezvous: fix outgoing call
Change-Id: I9a1de6e32c393320bb241cf8c21c6bc70d7a5b49
diff --git a/src/RingWindowController.mm b/src/RingWindowController.mm
index 15e7cfb..e12b096 100644
--- a/src/RingWindowController.mm
+++ b/src/RingWindowController.mm
@@ -251,8 +251,9 @@
[self](const QString& accountId,
const lrc::api::conversation::Info convInfo){
auto* accInfo = &self.accountModel->getAccountInfo(accountId);
+ auto callModel = accInfo->callModel.get();
lrc::api::account::ConfProperties_t accountProperties = accInfo->accountModel->getAccountConfig(accInfo->id);
- if (accountProperties.isRendezVous) {
+ if (accountProperties.isRendezVous && (!callModel->hasCall(convInfo.callId) || !callModel->getCall(convInfo.callId).isOutgoing)) {
if ([smartViewVC getSelectedUID] == convInfo.uid) {
[smartViewVC deselect];
[conversationVC hideWithAnimation:false];