# HG changeset patch # User Mikael Berthe # Date 1267360317 -3600 # Node ID 318c64ceb494abfe1265f14eba096db4cc99b21a # Parent 0fa71bfe703d62d6072f294eae7c122b429174f3 Do not rename a contact before the server's ACK (The server could deny the request... Cf. Facebook chat.) diff -r 0fa71bfe703d -r 318c64ceb494 mcabber/mcabber/commands.c --- 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); }