adium 2853:a2f78c3401b9: Don't add a focus class for messages in...
commits at adium.im
commits at adium.im
Mon Nov 2 23:35:40 UTC 2009
details: http://hg.adium.im/adium/rev/a2f78c3401b9
revision: 2853:a2f78c3401b9
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 7ff6b3f336d6 -r a2f78c3401b9 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