# HG changeset patch # User Zachary West # Date 1257204926 18000 # Node ID a2f78c3401b991604120610576aa8bbc1a12b5bb # Parent 7ff6b3f336d6a9ed516e416cafa73eca5e691bda Don't add a focus class for messages in the active chat. Refs #13300. diff -r 7ff6b3f336d6a9ed516e416cafa73eca5e691bda -r a2f78c3401b991604120610576aa8bbc1a12b5bb 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; }