adium-1.4 2779:e807123cdd27: A manually specified display name m...

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


details:	http://hg.adium.im/adium-1.4/rev/e807123cdd27
revision:	2779:e807123cdd27
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.
(transplanted from 5616a54b11730d33e656932d8d90bdc4816ccc17)

diffs (15 lines):

diff -r 28f5eed808ff -r e807123cdd27 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