adium 2302:b460f92b53cf: Set the alias, now, before adding a con...
commits at adium.im
commits at adium.im
Sun May 24 06:19:09 UTC 2009
details: http://hg.adium.im/adium/rev/b460f92b53cf
revision: 2302:b460f92b53cf
author: Zachary West <zacw at adium.im>
date: Sun May 24 02:18:56 2009 -0400
Set the alias, now, before adding a contact to a group. We pass the alias to libpurple when adding, so this workaroundish thing isn't needed anymore.
diffstat:
Source/AINewContactWindowController.m | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r c6ec73b445f1 -r b460f92b53cf Source/AINewContactWindowController.m
--- a/Source/AINewContactWindowController.m Sun May 24 02:11:32 2009 -0400
+++ b/Source/AINewContactWindowController.m Sun May 24 02:18:56 2009 -0400
@@ -209,12 +209,13 @@
if (contact) {
addedAtLeastOneContact = YES;
- [account addContact:contact toGroup:group];
- // Set the alias (after adding to the account, so it gets set remotely)
+ // Set the alias. When adding to libpurple, we set the alias in the add, so we're fine adding it here.
if (alias && [alias length])
[contact setDisplayName:alias];
+ [account addContact:contact toGroup:group];
+
//Remember the ABPerson's unique ID associated with this contact
if (person)
[contact setAddressBookPerson:person];
More information about the commits
mailing list