adium 2929:5616a54b1173: A manually specified display name must ...

commits at adium.im commits at adium.im
Sun Nov 22 02:04:32 UTC 2009


details:	http://hg.adium.im/adium/rev/5616a54b1173
revision:	2929:5616a54b1173
author:		Evan Schoenberg
date:		Sat Nov 21 20:07:58 2009 -0600

A manually specified display name must override any server-provided one. A chat can get a display name from the account's own information via -[CBPurpleAccount updateTitle:forChat:]. If an alias is specified for a chat, ensure that it is displayed by setting it at highest priority in the AIMutableOwnerArray.

Fixes #12771, including the comment within that ticket that changes to the alias via the Get Info window previously didn't live-update.

diffs (15 lines):

diff -r f1eb7d4192c6 -r 5616a54b1173 Frameworks/Adium Framework/Source/AIChat.m
--- a/Frameworks/Adium Framework/Source/AIChat.m	Sat Nov 21 19:07:24 2009 -0600
+++ b/Frameworks/Adium Framework/Source/AIChat.m	Sat Nov 21 20:07:58 2009 -0600
@@ -279,8 +279,9 @@
 - (void)setDisplayName:(NSString *)inDisplayName
 {
 	[[self displayArrayForKey:@"Display Name"] setObject:inDisplayName
-											   withOwner:self];
-	
+											   withOwner:self
+										   priorityLevel:Highest_Priority];
+
 	//The display array doesn't cause an attribute update; fake it.
 	[adium.chatController chatStatusChanged:self
 						 modifiedStatusKeys:[NSSet setWithObject:@"Display Name"]




More information about the commits mailing list