Do not reconnect chats if there is no ID. That could probably happen for MSN-like
authorXavier Claessens <xclaesse@gmail.com>
Fri, 20 Mar 2009 14:13:55 +0000 (14:13 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 20 Mar 2009 14:13:55 +0000 (14:13 +0000)
MUCs.

From: Xavier Claessens <xclaesse@gmail.com>

svn path=/trunk/; revision=2724

libempathy-gtk/empathy-chat.c

index 652c6651d80ebf618a328972b6e99a4d79d2f2fc..30fa44c4726f79ca18ec1db5f27997438fb7a554 100644 (file)
@@ -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");