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:
parent
815d324118
commit
a4300308dc
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue