Reputation: 125
I know that we can privately chat with the users in a group by Chat chat = muc2.createPrivateChat("[email protected]/johndoe");
chat.sendMessage("Hello there");
as given in the documentation.
But I didn't find a way to publicly chat to all the users in the group. Any idea?
Thanks in advance.
Upvotes: 1
Views: 969
Reputation: 125
Thanks for comments on my question. I solved by problem of chatting to all the users in the group as follows,
Message msg = new Message("[email protected]", Message.Type.groupchat);
msg.setBody("Hai... How are you?..");
oXmppConnection.sendPacket(msg);
Upvotes: 1