diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-03-26 18:58:50 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-03-29 23:26:06 +0800 |
commit | c3057afe0d6ffddc4b7223fab51751473dfb1a1f (patch) | |
tree | c5496d32ba10671008a3d01434c37de35f36f7db /libempathy/empathy-tp-chat.c | |
parent | 2fcfa45d056d18a8eec36b3da755d82e7dcf7484 (diff) | |
download | gsoc2013-empathy-c3057afe0d6ffddc4b7223fab51751473dfb1a1f.tar gsoc2013-empathy-c3057afe0d6ffddc4b7223fab51751473dfb1a1f.tar.gz gsoc2013-empathy-c3057afe0d6ffddc4b7223fab51751473dfb1a1f.tar.bz2 gsoc2013-empathy-c3057afe0d6ffddc4b7223fab51751473dfb1a1f.tar.lz gsoc2013-empathy-c3057afe0d6ffddc4b7223fab51751473dfb1a1f.tar.xz gsoc2013-empathy-c3057afe0d6ffddc4b7223fab51751473dfb1a1f.tar.zst gsoc2013-empathy-c3057afe0d6ffddc4b7223fab51751473dfb1a1f.zip |
tp-chat: update self user if it has been renamed (#613930)
Diffstat (limited to 'libempathy/empathy-tp-chat.c')
-rw-r--r-- | libempathy/empathy-tp-chat.c | 6 |
1 files changed, 6 insertions, 0 deletions
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)); } |