Code

whiteboard now works on jep compliant servers only, aka wildfire
authordaleharvey <daleharvey@users.sourceforge.net>
Wed, 24 May 2006 11:47:01 +0000 (11:47 +0000)
committerdaleharvey <daleharvey@users.sourceforge.net>
Wed, 24 May 2006 11:47:01 +0000 (11:47 +0000)
src/jabber_whiteboard/chat-handler.cpp

index b3e906508668e5c06cddd60a4ac1addd5d1884da..0ba733a0c06c589dac944d233c02705b9f2ac0ec 100644 (file)
@@ -85,19 +85,21 @@ ChatMessageHandler::parse(LmMessage* message)
                                        // Therefore we need to use some sort of hacked-up method to make this work.  We listen for 
                                        // the sentinel value in a groupchat message -- currently it is '[username] INKBOARD-JOINED' --
                                        // and begin processing that way.
-                                       LmMessageNode* body = lm_message_node_get_child(root, "body");
-                                       if (body != NULL) {
-                                               gchar const* val = lm_message_node_get_value(body);
-                                               if (strcmp(val, String::ucompose("%1 has become available", this->_sm->session_data->chat_handle).c_str()) == 0) {
-                                                       return this->_finishConnection(); break;
-                                               } else {
+
+                                       //LmMessageNode* body = lm_message_node_get_child(root, "body");
+                                       //if (body != NULL) {
+                                               //gchar const* val = lm_message_node_get_value(body);
+                        //g_warning("hey - %s",val);                                   
+                        //if (strcmp(val, String::ucompose("%1 entered the room.", this->_sm->session_data->chat_handle).c_str()) == 0) {
+                                               //      return this->_finishConnection(); break;
+                                               //} else {
                                                        return LM_HANDLER_RESULT_ALLOW_MORE_HANDLERS;
                                                        break;
-                                               }
-                                       } else {
+                                               //}
+                                       //} else {
                                                return LM_HANDLER_RESULT_ALLOW_MORE_HANDLERS;
                                                break;
-                                       }
+                                       //}
                                }
                                                                                                
                                default:
@@ -137,6 +139,7 @@ ChatMessageHandler::parse(LmMessage* message)
                                                this->_sm->session_data->receive_queues[sender.raw()] = new ReceiveMessageQueue(this->_sm);
                                                
                                        } else {
+                        return this->_finishConnection(); break;
                                                //g_warning("hmm, who is chatting %s",chatter);
                                                // If the presence message is from ourselves, then we know that we 
                                                // have successfully entered the chatroom _and_ have received the entire room roster,