adium-1.4 2729:2b6390521141: Don't add a focus class for message...

commits at adium.im commits at adium.im
Mon Nov 2 23:35:30 UTC 2009


details:	http://hg.adium.im/adium-1.4/rev/2b6390521141
revision:	2729:2b6390521141
author:		Zachary West <zacw at adium.im>
date:		Mon Nov 02 18:35:26 2009 -0500

Don't add a focus class for messages in the active chat. Refs #13300.

diffs (15 lines):

diff -r bb4935318350 -r 2b6390521141 Plugins/WebKit Message View/AIWebKitMessageViewController.m
--- a/Plugins/WebKit Message View/AIWebKitMessageViewController.m	Mon Nov 02 18:30:22 2009 -0500
+++ b/Plugins/WebKit Message View/AIWebKitMessageViewController.m	Mon Nov 02 18:35:26 2009 -0500
@@ -683,7 +683,10 @@
 		
 		// Set it as a focus if appropriate.
 		if (nextMessageFocus && [content.type isEqualToString:CONTENT_MESSAGE_TYPE]) {
-			[content addDisplayClass:@"focus"];
+			if (adium.interfaceController.activeChat != content.chat) {
+				[content addDisplayClass:@"focus"];
+			}
+			
 			nextMessageFocus = NO;
 		}
 		




More information about the commits mailing list