I’‘m developing a client on top of Smack 3.x and am having trouble with spurious Chats being created when using File Transfer and Message Notification. I’‘ve followed the docs as best I can tell, so now I’'m stumped.
Here’'s the scenario: I have a ChatManagerListener listening for new Chats and reacting when a non-local Chat is created. I would expect to only see genuine incidences of new Chats triggering the chatCreated method, but instead I see the following:
In some cases, when I initiate a chat with a Spark client, the Spark client changes the thread ID and the response message shows up as a new Chat.
In some cases, when composing notifications come in, they create a new Chat
In some cases, when transferring a file, each Message packet triggers a new Chat (hundreds are created very quickly)
I haven’‘t quite pinpointed the patterns of when these things happen and when they don’'t, but they happen quite a bit. Any thoughts on what to look for?