From c3057afe0d6ffddc4b7223fab51751473dfb1a1f Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 26 Mar 2010 11:58:50 +0100 Subject: tp-chat: update self user if it has been renamed (#613930) --- libempathy/empathy-tp-chat.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libempathy/empathy-tp-chat.c') diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 7877acb22..835827410 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -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)); } -- cgit v1.2.3