From: daleharvey Date: Wed, 24 May 2006 11:47:01 +0000 (+0000) Subject: whiteboard now works on jep compliant servers only, aka wildfire X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f588299656652930dcd257ba3eabaac5945320ac;p=inkscape.git whiteboard now works on jep compliant servers only, aka wildfire --- diff --git a/src/jabber_whiteboard/chat-handler.cpp b/src/jabber_whiteboard/chat-handler.cpp index b3e906508..0ba733a0c 100644 --- a/src/jabber_whiteboard/chat-handler.cpp +++ b/src/jabber_whiteboard/chat-handler.cpp @@ -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,