adium 2334:00c2dbc31262: When adding a contact to a meta contact...

commits at adium.im commits at adium.im
Tue May 26 02:12:45 UTC 2009


details:	http://hg.adium.im/adium/rev/00c2dbc31262
revision:	2334:00c2dbc31262
author:		Zachary West <zacw at adium.im>
date:		Mon May 25 22:12:27 2009 -0400

When adding a contact to a meta contact, also move (not copy) them to the meta contact's groups. I think this is the expected behavior, when dragging into a meta contact, possible cross-group.

diffstat:

 Source/AIContactController.m |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 0214395c374b -r 00c2dbc31262 Source/AIContactController.m
--- a/Source/AIContactController.m	Mon May 25 22:07:05 2009 -0400
+++ b/Source/AIContactController.m	Mon May 25 22:12:27 2009 -0400
@@ -577,6 +577,11 @@
 		}
 		
 	} else {
+		// Move the contact from all of its groups into the meta contact's groups.
+		if (metaContact.groups) {
+			[self moveContact:inContact fromGroups:inContact.remoteGroups intoGroups:metaContact.groups];
+		}
+		
 		//Obtain any metaContact this listObject is currently within, so we can remove it later
 		AIMetaContact *oldMetaContact = [contactToMetaContactLookupDict objectForKey:[inContact internalObjectID]];
 		




More information about the commits mailing list