adium 3605:9ff6f82fc915: For Growl notifcations of group chat me...

commits at adium.im commits at adium.im
Mon Dec 20 20:05:15 UTC 2010


details:	http://hg.adium.im/adium/rev/9ff6f82fc915
revision:	3605:9ff6f82fc915
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Mon Dec 20 21:04:16 2010 +0100

For Growl notifcations of group chat messages, put the channel name after the nick, instead of in front of the message.

Makes it easier to get all the important information from a notification at first glance.

diffs (26 lines):

diff -r c071ac69695f -r 9ff6f82fc915 Source/AdiumMessageEvents.m
--- a/Source/AdiumMessageEvents.m	Sat Dec 18 23:10:30 2010 -0800
+++ b/Source/AdiumMessageEvents.m	Mon Dec 20 21:04:16 2010 +0100
@@ -359,7 +359,7 @@
 	} else {
 		if (messageText && [messageText length]) {
 			if (contentObject.chat.isGroupChat) {
-				description = [NSString stringWithFormat:@"(%@) %@", contentObject.chat.displayName, messageText];
+				description = [NSString stringWithFormat:@"%@", messageText];
 			} else {
 				description = messageText;
 			}
diff -r c071ac69695f -r 9ff6f82fc915 Source/NEHGrowlPlugin.m
--- a/Source/NEHGrowlPlugin.m	Sat Dec 18 23:10:30 2010 -0800
+++ b/Source/NEHGrowlPlugin.m	Mon Dec 20 21:04:16 2010 +0100
@@ -395,6 +395,10 @@
 			[clickContext setObject:chat.uniqueChatID
 							 forKey:KEY_CHAT_ID];
 			
+		if (chat && [chat isGroupChat]) {
+			title = [NSString stringWithFormat:@"%@ (%@)", title, [chat displayName]];
+		}
+			
 		} else {
 			if ([userInfo isKindOfClass:[ESFileTransfer class]] &&
 				[eventID isEqualToString:FILE_TRANSFER_COMPLETE]) {




More information about the commits mailing list