[jdev] Thread IDs - The Reality?

James Le Cuirot chewi at ffaura.com
Thu Aug 11 16:26:27 CDT 2005


On Thu, 11 Aug 2005 13:25:40 -0400
Julian Missig <julian at jabber.org> wrote:
> 
> Exactly. Focus on getting clients to maintain thread IDs and
> generate new ones automatically. Even if they're not completely
> accurate, it's better than nothing.
> 
> Julian
> 

Thanks for your responses.

What I want shouldn't complicate things too much. I do need the client
to be able to handle multiple chat windows with the same person but it
is not necessary for the client to be able to create additional threads
itself since these chats will actually started by a bot rather than a
user running a GUI client.

I started hacking away at Gaim today. I'm guessing that as clients go,
this will be one of the more difficult ones. Despite that, I have
actually had some small success. If I send messages from Jabberwocky
using different thread IDs then they actually do appear in separate
Gaim windows and consequent messages to those thread IDs do get sent
to the right windows. (-: Gaim associates each chat window with a
string. It was previously using the other user's ID and I simply
changed it to use the thread ID instead. The problem is that it then
uses this "window ID" for many other things like adding buddies,
retrieving profile info and even replying - yes when I reply, it tries
to send the message to a user such as "test thread 1". Fixing this will
require some significant modifications to the way Gaim works but I
think I can handle it.

Chewi



More information about the JDev mailing list