]> git.0d.be Git - empathy.git/commitdiff
tp-chat: update self user if it has been renamed (#613930)
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 26 Mar 2010 10:58:50 +0000 (11:58 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 29 Mar 2010 15:26:06 +0000 (17:26 +0200)
libempathy/empathy-tp-chat.c

index 7877acb22e1d7e09d895fb037ac08833194bd1a3..83582741008d486dc97a45ab4f2a8751aa2808d5 100644 (file)
@@ -1069,6 +1069,12 @@ tp_chat_got_renamed_contacts_cb (EmpathyTpContactFactory *factory,
                }
        }
 
+       if (priv->user == old) {
+               /* We change our nick */
+               g_object_unref (priv->user);
+               priv->user = g_object_ref (new);
+       }
+
        tp_chat_update_remote_contact (EMPATHY_TP_CHAT (chat));
        tp_chat_check_if_ready (EMPATHY_TP_CHAT (chat));
 }