mirror of
https://github.com/savoirfairelinux/jami-client-qt.git
synced 2025-12-18 16:44:52 +08:00
contactmodel: check if removed before adding
Change-Id: I61b3773539bf6a0774ea487e4f5aae74bd2bc635
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user