I've been playing around with the MessageSession class lately. The
documentation in messagesession.h states the following:
* To initiate a new chat session, all you have to do is create a new
MessageSession and register
* a MessageHandler with it:
* @code
* MessageSession* MyClass::newSession( const JID& to )
* {
* MessageSession* session = new MessageSession( m_client, to );
* session->registerMessageHandler( this );
* return session;
* }
* @endcode
Doing so works just fine. I receive my initial message on the target user's
machine. However, when the target user responds on that same session, I
receive a callback in handleMessageSession() even though the JID is exactly
the same that I used to create the initial conversation with.
Why is this, and what am I doing wrong?
Thanks,
Soren