1.1 --- a/IChatUtils.m Sat Mar 08 21:04:41 2008 -0800
1.2 +++ b/IChatUtils.m Mon Apr 14 13:58:48 2008 -0700
1.3 @@ -36,19 +36,21 @@
1.4 if( chats.count==0 )
1.5 return nil;
1.6 iChatTextChat *chat = [chats objectAtIndex: 0];
1.7 - if( ! chat.active )
1.8 - return nil;
1.9 + /*if( ! chat.active ) // somehow this returns NO for Bonjour chats
1.10 + return nil;*/
1.11 return chat;
1.12 }
1.13
1.14 + (NSString*) activeChatPartner
1.15 {
1.16 iChatTextChat *chat = [self activeChat];
1.17 + Log(@"Active chat = %@",chat);
1.18 if( ! chat )
1.19 return nil;
1.20 NSMutableArray *names = $marray();
1.21 for( iChatBuddy *b in [chat participants] )
1.22 [names addObject: (b.fullName ?: b.name)];
1.23 + Log(@"Particpants = %@",names);
1.24 return [names componentsJoinedByString: @", "];
1.25 }
1.26