Fix merging contacts from separate parent groups

cusax-fix
Emil Ivov 20 years ago
parent a2f13781ac
commit 546b84dee2

@ -1829,7 +1829,16 @@ public void subscriptionMoved(SubscriptionMovedEvent evt)
}
MetaContactImpl currentMetaContact = (MetaContactImpl)
findMetaContactByContact(evt.getSourceContact());
findMetaContactByContact(evt.getSourceContact());
//if the move was caused by us (when merging contacts) then chances
//that the contact is already in the right group
MetaContactGroup currentParentGroup
= currentMetaContact.getParentMetaContactGroup();
if(currentParentGroup == newParentGroup)
{
return;
}
//if the meta contact does not have other children apart from the
//contact that we're currently moving then move the whole meta

Loading…
Cancel
Save