Mercurial > hg
changeset 1725:318c64ceb494
Do not rename a contact before the server's ACK
(The server could deny the request... Cf. Facebook chat.)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 28 Feb 2010 13:31:57 +0100 |
parents | 0fa71bfe703d |
children | 98917ddcbaab |
files | mcabber/mcabber/commands.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/mcabber/commands.c Sun Feb 28 13:04:59 2010 +0100 +++ b/mcabber/mcabber/commands.c Sun Feb 28 13:31:57 2010 +0100 @@ -2040,7 +2040,10 @@ guint del_name = 0; if (!*newname || !strcmp(arg, "-")) del_name = TRUE; - buddy_setname(bud, (del_name ? (char*)bjid : name_utf8)); + /* We do not rename the buddy right now because the server could reject + * the request. Let's wait for the server answer. + * buddy_setname(bud, (del_name ? (char*)bjid : name_utf8)); + */ xmpp_updatebuddy(bjid, (del_name ? NULL : name_utf8), group); }