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.
authorEvan Schoenberg
Sat Nov 21 20:07:58 2009 -0600 (2009-11-21)
changeset 29295616a54b1173
parent 2928 f1eb7d4192c6
child 2930 61a5bc1a37d6
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.
Frameworks/Adium Framework/Source/AIChat.m
     1.1 --- a/Frameworks/Adium Framework/Source/AIChat.m	Sat Nov 21 19:07:24 2009 -0600
     1.2 +++ b/Frameworks/Adium Framework/Source/AIChat.m	Sat Nov 21 20:07:58 2009 -0600
     1.3 @@ -279,8 +279,9 @@
     1.4  - (void)setDisplayName:(NSString *)inDisplayName
     1.5  {
     1.6  	[[self displayArrayForKey:@"Display Name"] setObject:inDisplayName
     1.7 -											   withOwner:self];
     1.8 -	
     1.9 +											   withOwner:self
    1.10 +										   priorityLevel:Highest_Priority];
    1.11 +
    1.12  	//The display array doesn't cause an attribute update; fake it.
    1.13  	[adium.chatController chatStatusChanged:self
    1.14  						 modifiedStatusKeys:[NSSet setWithObject:@"Display Name"]