adium 5476:2e78430867fa: * The date separator now gets the class...
commits at adium.im
commits at adium.im
Thu May 9 09:16:36 UTC 2013
details: http://hg.adium.im/adium/rev/2e78430867fa
revision: 5476:2e78430867fa
branch: adium-1.6
author: Thijs Alkemade <me at thijsalkema.de>
date: Thu May 09 11:14:29 2013 +0200
* The date separator now gets the class "focus", when the next message is received while out of focus.
* Try to ensure that only the last message has "lastFocus", even when messages are received in quick succession.
diffs (24 lines):
diff -r 15de7b973d1e -r 2e78430867fa Plugins/WebKit Message View/AIWebKitMessageViewController.m
--- a/Plugins/WebKit Message View/AIWebKitMessageViewController.m Tue May 07 18:55:25 2013 +0200
+++ b/Plugins/WebKit Message View/AIWebKitMessageViewController.m Thu May 09 11:14:29 2013 +0200
@@ -691,6 +691,9 @@
if ([content isKindOfClass:[AIContentContext class]])
[dateSeparator addDisplayClass:@"history"];
+
+ if (content.chat.isGroupChat && content.postProcessContent && adium.interfaceController.activeChat != content.chat)
+ [dateSeparator addDisplayClass:@"focus"];
//Add the date header
[self _appendContent:dateSeparator
@@ -738,7 +741,9 @@
// Add a class for "this content received while out of focus"
if (content.chat.isGroupChat) {
[content addDisplayClass:@"focus"];
- [content addDisplayClass:@"lastFocus"];
+
+ if (!willAddMoreContentObjects)
+ [content addDisplayClass:@"lastFocus"];
// if there's something else already lastFocus, then unset it
DOMNodeList *nodeList = [webView.mainFrameDocument querySelectorAll:@".lastFocus"];
More information about the commits
mailing list