adium 3324:cc8e7d8ceb58: Return the first visible object, not th...

commits at adium.im commits at adium.im
Mon Sep 20 00:59:34 UTC 2010


details:	http://hg.adium.im/adium/rev/cc8e7d8ceb58
revision:	3324:cc8e7d8ceb58
author:		Zachary West <zacw at adium.im>
date:		Sun Sep 19 20:58:33 2010 -0400

Return the first visible object, not the first contained object, as the chat list object.
(transplanted from 16f39493eae413cab731ec4a7013cb27012c1e34)

diffs (12 lines):

diff -r 0e3dafd316e8 -r cc8e7d8ceb58 Frameworks/Adium Framework/Source/AIChat.m
--- a/Frameworks/Adium Framework/Source/AIChat.m	Mon Sep 20 00:42:20 2010 +0200
+++ b/Frameworks/Adium Framework/Source/AIChat.m	Sun Sep 19 20:58:33 2010 -0400
@@ -439,7 +439,7 @@
 - (AIListContact *)listObject
 {
 	if (self.countOfContainedObjects == 1 && !self.isGroupChat) {
-		return [self.containedObjects objectAtIndex:0];
+		return [self visibleObjectAtIndex:0];
 	}
 
 	return nil;




More information about the commits mailing list