1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-24 17:35:43 +02:00

contactmodel: check if removed before adding

Change-Id: I61b3773539bf6a0774ea487e4f5aae74bd2bc635
This commit is contained in:
Sébastien Blin 2024-01-04 09:45:16 -05:00
parent 815d324118
commit a4300308dc

View file

@ -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;