summaryrefslogtreecommitdiff
path: root/src/conn-aliasing.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conn-aliasing.c')
-rw-r--r--src/conn-aliasing.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/conn-aliasing.c b/src/conn-aliasing.c
index b153f8215..f0a30d2c3 100644
--- a/src/conn-aliasing.c
+++ b/src/conn-aliasing.c
@@ -1,7 +1,7 @@
/*
* conn-aliasing.c - Gabble connection aliasing interface
- * Copyright (C) 2005-2007 Collabora Ltd.
- * Copyright (C) 2005-2007 Nokia Corporation
+ * Copyright (C) 2005-2010 Collabora Ltd.
+ * Copyright (C) 2005-2010 Nokia Corporation
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -525,6 +525,8 @@ setaliases_foreach (gpointer key, gpointer value, gpointer user_data)
if (base->self_handle == handle)
{
+ GList *edits = NULL;
+
/* User has called SetAliases on themselves - patch their vCard.
* FIXME: because SetAliases is currently synchronous, we ignore errors
* here, and just let the request happen in the background.
@@ -547,8 +549,10 @@ setaliases_foreach (gpointer key, gpointer value, gpointer user_data)
lm_message_unref (msg);
}
- gabble_vcard_manager_edit (data->conn->vcard_manager, 0, NULL, NULL,
- G_OBJECT(data->conn), 1, "NICKNAME", alias);
+ edits = g_list_append (edits, gabble_vcard_manager_edit_info_new (
+ NULL, alias, GABBLE_VCARD_EDIT_SET_ALIAS, NULL));
+ gabble_vcard_manager_edit (data->conn->vcard_manager, 0, NULL,
+ NULL, G_OBJECT (data->conn), edits);
}
if (NULL != error)