Subject: how do i track conversation threads with Google Talk?
First of all, great job with the library!
I'm using it to interface with Google Talk. No problems with logging in and sending and receiving messages.
What I'm having problems with is trying to track if a reply I get from another Google Talk user is part of an existing conversation Thread.
I am following simple sample code to send out a message to a user:
Later on when I get a reply in my handler:
...the msg.Body contains the response from the GoogleTalk user. However, the msg.Thread element value is NULL.
Am I doing something wrong when i first send out the message? Or is the GoogleTalk implementation not doing something?
Or am I approaching this the wrong way? All I want to do is to be able to identify which unique conversations I am having.
Thank you in advance.
I'm using it to interface with Google Talk. No problems with logging in and sending and receiving messages.
What I'm having problems with is trying to track if a reply I get from another Google Talk user is part of an existing conversation Thread.
I am following simple sample code to send out a message to a user:
// Send message to user joeblow
agsXMPP.protocol.client.Message msg = new agsXMPP.protocol.client.Message("joeblow@gmail.com", agsXMPP.protocol.client.MessageType.chat, sentence);
msg.Thread = "mythread";
xmpp.Send(msg);
agsXMPP.protocol.client.Message msg = new agsXMPP.protocol.client.Message("joeblow@gmail.com", agsXMPP.protocol.client.MessageType.chat, sentence);
msg.Thread = "mythread";
xmpp.Send(msg);
Later on when I get a reply in my handler:
private void xmpp_OnMessage(object sender, agsXMPP.protocol.client.Message msg)
{
MyClass.eLog.WriteEntry("message body: " + msg.Body);
MyClass.eLog.WriteEntry("message thread: " + msg.Thread);
}
{
MyClass.eLog.WriteEntry("message body: " + msg.Body);
MyClass.eLog.WriteEntry("message thread: " + msg.Thread);
}
...the msg.Body contains the response from the GoogleTalk user. However, the msg.Thread element value is NULL.
Am I doing something wrong when i first send out the message? Or is the GoogleTalk implementation not doing something?
Or am I approaching this the wrong way? All I want to do is to be able to identify which unique conversations I am having.
Thank you in advance.