Skip to content
Snippets Groups Projects
Commit a4300308 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

contactmodel: check if removed before adding

Change-Id: I61b3773539bf6a0774ea487e4f5aae74bd2bc635
parent 815d3241
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment