From a4300308dc8d03d59f620bb5fed753df5cf31ed9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Thu, 4 Jan 2024 09:45:16 -0500 Subject: [PATCH] contactmodel: check if removed before adding Change-Id: I61b3773539bf6a0774ea487e4f5aae74bd2bc635 --- src/libclient/contactmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libclient/contactmodel.cpp b/src/libclient/contactmodel.cpp index d259d41b3..697b68cde 100644 --- a/src/libclient/contactmodel.cpp +++ b/src/libclient/contactmodel.cpp @@ -265,7 +265,7 @@ ContactModel::addContact(contact::Info contactInfo) // if contactInfo is already a contact for the daemon, type should be equals to RING // if the user add a temporary item for a SIP account, should be directly transformed - if (!details.empty() + if ((!details.empty() && details.value("removed") == "0") || (profile.type == profile::Type::TEMPORARY && owner.profileInfo.type == profile::Type::SIP)) profile.type = owner.profileInfo.type; -- GitLab