Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Thread id issue

$
0
0

Hi All,

 

   Following is my scenario.

 

I have the following clients setup.

 

client1  = admin@jabber.com    

client 2= user@jabber.com

machine-A  --- user@jabber.com\resource1 connected

machine-B  --- user@jabber.com\resouce2 connected

machine-C  --- admin@jabber.com\adminResource1 connected

machine-D  --- admin@jabber.com\adminResource2 connected

 

When admin@jabber.com\adminResource1 sends a message for the first time ever to the bare jid user@jabber.com with threadId=ABC -- one of the client's on either machine A or  B receive the message successfully with all the correct details including the thread id ABC. The reply to the first message by user@jabber.com\resource1 contains all the correct details including the corrent thread id, the correct sender jid and the correct receiver jid.

 

But after the first message has been received by user@jabber.com\resource1 , all new messages coming from admin@jabber.com\resouce1 with new a new Thread Id for example DEF (As seen in the Raw Packet via Debug window) are received with the old thread id of the first message when they are received by the MessageListener's chatCreated(Chat chat, boolean createdLocally) method.

 

Because of this when user@jabber.com]\resouce1 replies to the message for all other messages after the first message, the message goes to the wrong admin client. For example if the second message received by user@jabber.com was from admin@jabber.com\adminResource2 -- the message ends up to admin@jabber.com\adminResource1 as I am thinking because the thread id being set on the outgoing message is that of the first message which was received from admin@jabber.com\adminResource1, the reply message ends up in to the wrong admin client.

 

Any help or pointers to solve the issue will be greatly appreciated.


Viewing all articles
Browse latest Browse all 10742

Trending Articles