1.1 --- a/Plugins/WebKit Message View/AIWebKitMessageViewController.m Mon Nov 09 14:14:32 2009 -0500
1.2 +++ b/Plugins/WebKit Message View/AIWebKitMessageViewController.m Tue Nov 10 10:56:52 2009 -0500
1.3 @@ -676,26 +676,23 @@
1.4
1.5 [topicElement setInnerHTML:[messageStyle completedTemplateForContent:content similar:similar]];
1.6 } else {
1.7 - if (content.trackContent) {
1.8 - // Mark the current location (the start of this element) if it's a mention.
1.9 - if ([content.displayClasses containsObject:@"mention"]) {
1.10 - [self markCurrentLocation];
1.11 + // Mark the current location (the start of this element) if it's a mention.
1.12 + if (content.trackContent && [content.displayClasses containsObject:@"mention"]) {
1.13 + [self markCurrentLocation];
1.14 + }
1.15 +
1.16 + if (content.postProcessContent && adium.interfaceController.activeChat != content.chat) {
1.17 + if (nextMessageFocus) {
1.18 + [self.markedScroller addMarkAt:[self.currentOffsetHeight integerValue] withIdentifier:@"focus" withColor:[NSColor redColor]];
1.19 +
1.20 + // Add a class for "first content to lose focus"
1.21 + [content addDisplayClass:@"firstFocus"];
1.22 +
1.23 + nextMessageFocus = NO;
1.24 }
1.25
1.26 - // Apply focus classes appropriately.
1.27 - if (adium.interfaceController.activeChat != content.chat) {
1.28 - if (nextMessageFocus) {
1.29 - [self.markedScroller addMarkAt:[self.currentOffsetHeight integerValue] withIdentifier:@"focus" withColor:[NSColor redColor]];
1.30 -
1.31 - // Add a class for "first content to lose focus"
1.32 - [content addDisplayClass:@"firstFocus"];
1.33 -
1.34 - nextMessageFocus = NO;
1.35 - }
1.36 -
1.37 - // Add a class for "this content received while out of focus"
1.38 - [content addDisplayClass:@"focus"];
1.39 - }
1.40 + // Add a class for "this content received while out of focus"
1.41 + [content addDisplayClass:@"focus"];
1.42 }
1.43
1.44 //Add the content object