adium 3152:61e07c6048df: Default nextMessageFocus to YES in AIWe...

commits at adium.im commits at adium.im
Sun Mar 14 02:26:09 UTC 2010


details:	http://hg.adium.im/adium/rev/61e07c6048df
revision:	3152:61e07c6048df
author:		Evan Schoenberg
date:		Sat Mar 13 20:25:36 2010 -0600

Default nextMessageFocus to YES in AIWebKitMessageViewController so that the first content received, if the chat isn't in focus, will still be known to be first. Fixes #13793
(transplanted from 6919c3b23dcd3379f56dac24ad5b5a1633d00baa)

diffs (16 lines):

diff -r 3f169988865e -r 61e07c6048df Plugins/WebKit Message View/AIWebKitMessageViewController.m
--- a/Plugins/WebKit Message View/AIWebKitMessageViewController.m	Sat Mar 13 20:12:33 2010 -0600
+++ b/Plugins/WebKit Message View/AIWebKitMessageViewController.m	Sat Mar 13 20:25:36 2010 -0600
@@ -128,7 +128,11 @@
 		objectsWithUserIconsArray = [[NSMutableArray alloc] init];
 		shouldReflectPreferenceChanges = NO;
 		storedContentObjects = nil;
-
+		/* If we receive content before gaining focus, we'll want to know the first content received is the first to be
+		 * classed as such.
+		 */
+		nextMessageFocus = YES;
+		
 		//Observe preference changes.
 		[adium.preferenceController registerPreferenceObserver:self forGroup:PREF_GROUP_WEBKIT_REGULAR_MESSAGE_DISPLAY];
 		[adium.preferenceController registerPreferenceObserver:self forGroup:PREF_GROUP_WEBKIT_GROUP_MESSAGE_DISPLAY];




More information about the commits mailing list