I'm not clear how metacontacts signing on while View->Show Groups is not active has...
commit8537fe924044c046128acb56aa2ac53238f6664d
authorEvan Schoenberg <evan@adiumx.com>
Tue, 9 Jan 2007 14:39:21 +0000 (9 14:39 +0000)
committerEvan Schoenberg <evan@adiumx.com>
Tue, 9 Jan 2007 14:39:21 +0000 (9 14:39 +0000)
tree308e9bea6347d5bb088d3605521850ccd29224a2
parent4c77d1b74c91cdd74fb4f654b19f61a55fd23b76
I'm not clear how metacontacts signing on while View->Show Groups is not active has *ever* worked...
 1. A metacontact which isn't on the list at present because none of its contacts are on the lists of connected accounts has a group of nil.
 2. When a contact signs on and is assigned a remote group, it notifies its metacontact via {{{-[AIMetaContact remoteGroupingOfContainedObject:changedTo:}}}.
 3. If the metacontact isn't in a group, it then calls {{{-[self restoreGrouping]}}}...
 4. which previously had no action if we aren't using contact list groups.

At (4), we now put the metacontact in the contact list root if we're not supposed to be using groups.  We also check so that in (3) to ensure that ''if'' we're not using contact list groups ''and'' the metacontact isn't already in the root we can call restoreGrouping.

jmpp reports that the issue only occurred for him while not showing list groups; I bet the same is true for the other reports of an identical issue in the ticket. Based on his testing, fixes #5901.

git-svn-id: svn://svn.adiumx.com/adium/branches/adium-1.0@18634 1c916fce-81e2-0310-a464-8ca513f45935
Frameworks/Adium Framework/Source/AIMetaContact.m