I've been looking through the list archives and found this message from Soren
that describes the same problem I have:
> Subject: Multiple MessageSessions are created for one conversation
> From: Soren Dreijer <dreijerspam@xxxxxxxxxxx>
> Date: Tue, 13 Jul 2010 18:20:17 +0200 (CEST)
>
> 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?
Unfortunately Soren didn't get an answer back then. Maybe Soren you are
listening? Did you find a solution?
Vincent