What about the chat invitation

Hi

i allways used GroupChats untill now… and all was beatifulll

now i have to use Chats… what’'s not difficult to use as creator… but idk how should i know i am supposted to join a query chat?

there is no ChatInvitation…

should i wait for unattended messages?

regards

Nicolas

Nicolas,

Group chat invitations are now part of the Smack extensions in CVS. You can download a nightly build to get this functionality. We’'ll likely do a release fairly soon as well.

Regards,

Matt

Yes… i used GroupChatInvitation and it worked

my prob is that i will now have to use “Chats” between 2 users… not a GroupChat

he first smack example uses:

connection.createChat("jsmith@jivesoftware.com").sendMessage(“Howdy!”);

now if jsmith@jivesoftware.com were using my jabber client too… how shoul he know someone is wanting to chat with him and if it’‘s trougth a GroupChatInvitation… how do i know it’'s a Chat and not a GroupChat… there must be differece…

regards

Nicolas

Nicolas,

If I’'m not wrong what you want to know is how do you detect when someone starts a new chat with you, am I correct?

If this is the case then you can listen for messages of type Message.Type.CHAT that your connection receives. For each message you can obtain the sender and the thread and create a new Chat using the constructor Chat(XMPPConnection connection, String participant, String chatID) where chatID is the message’'s thread.

Suerte,

– Gato

Gato

that’'s eactly what i wanted to hear

tks again

fepe

exactly