From b4dd743ec04b684430cd8d2b5e00904e380839d5 Mon Sep 17 00:00:00 2001
From: Ming Rui Zhang <mingrui.zhang@savoirfairelinux.com>
Date: Mon, 14 Jun 2021 13:19:21 -0400
Subject: [PATCH] contactmodel: emit contactAdded signal for SIP account

Gitlab: #455

Change-Id: I44ad72c0a06adc5a7afbd2ed2047429728309e86
---
 src/contactmodel.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/contactmodel.cpp b/src/contactmodel.cpp
index 743b50a5..4ca49ee8 100644
--- a/src/contactmodel.cpp
+++ b/src/contactmodel.cpp
@@ -305,6 +305,8 @@ ContactModel::addContact(contact::Info contactInfo)
         }
     }
     emit profileUpdated(profile.uri);
+    if (profile.type == profile::Type::SIP)
+        emit contactAdded(profile.uri);
 }
 
 void
-- 
GitLab