aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-chat.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-03-20 22:13:55 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-20 22:13:55 +0800
commit74da1a106e22d58f90ee6077089bda6fb7a56cea (patch)
tree2abc48dac6cf10643e7da7324900fdb1f76ec387 /libempathy-gtk/empathy-chat.c
parent87cafb1df56b5eca945b28f89a441c05e3aef537 (diff)
downloadgsoc2013-empathy-74da1a106e22d58f90ee6077089bda6fb7a56cea.tar
gsoc2013-empathy-74da1a106e22d58f90ee6077089bda6fb7a56cea.tar.gz
gsoc2013-empathy-74da1a106e22d58f90ee6077089bda6fb7a56cea.tar.bz2
gsoc2013-empathy-74da1a106e22d58f90ee6077089bda6fb7a56cea.tar.lz
gsoc2013-empathy-74da1a106e22d58f90ee6077089bda6fb7a56cea.tar.xz
gsoc2013-empathy-74da1a106e22d58f90ee6077089bda6fb7a56cea.tar.zst
gsoc2013-empathy-74da1a106e22d58f90ee6077089bda6fb7a56cea.zip
Do not reconnect chats if there is no ID. That could probably happen for MSN-like
MUCs. From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2724
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r--libempathy-gtk/empathy-chat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c
index 652c6651d..30fa44c47 100644
--- a/libempathy-gtk/empathy-chat.c
+++ b/libempathy-gtk/empathy-chat.c
@@ -179,7 +179,8 @@ chat_connection_changed_cb (EmpathyAccountManager *manager,
if (current == TP_CONNECTION_STATUS_CONNECTED && !priv->tp_chat &&
empathy_account_equal (account, priv->account) &&
- priv->handle_type != TP_HANDLE_TYPE_NONE) {
+ priv->handle_type != TP_HANDLE_TYPE_NONE &&
+ !EMP_IS_EMPTY (priv->id)) {
DEBUG ("Account reconnected, request a new Text channel");