adium-1.4 2904:6919c3b23dcd: Default nextMessageFocus to YES in ...

commits at adium.im commits at adium.im
Sun Mar 14 02:25:43 UTC 2010


details:	http://hg.adium.im/adium-1.4/rev/6919c3b23dcd
revision:	2904:6919c3b23dcd
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

diffs (16 lines):

diff -r aa84ce4654bb -r 6919c3b23dcd 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
@@ -121,7 +121,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