Subject: groupchat message sending problem
Hi Support ... I have a problem sending a message into a MUC room, I manage to join the room (or create a new one), but if I try a send a message into it marked as MessageType.groupchat, I always get an error saying that I cannot send a private message marked as a groupchat
Here is the code I use to join the test room on the conference server
Here is the code I use to send a message into that chat room
All help gratefully received!!!!!
Dave.
Here is the code I use to join the test room on the conference server
Presence pr = new Presence();
if (roomJID == null)
{
man = new MucManager(XmppCon);
roomJID = new Jid("test@conference.jabber.org/tester2");
// Setup new Message Callback
XmppCon.MesagageGrabber.Add(roomJID, new BareJidComparer(), new MessageCB(MessageCallback), null);
// Setup new Presence Callback
XmppCon.PresenceGrabber.Add(roomJID, new BareJidComparer(), new PresenceCB(PresenceCallback), null);
}
man.JoinRoom(roomJID, "tester2");
if (roomJID == null)
{
man = new MucManager(XmppCon);
roomJID = new Jid("test@conference.jabber.org/tester2");
// Setup new Message Callback
XmppCon.MesagageGrabber.Add(roomJID, new BareJidComparer(), new MessageCB(MessageCallback), null);
// Setup new Presence Callback
XmppCon.PresenceGrabber.Add(roomJID, new BareJidComparer(), new PresenceCB(PresenceCallback), null);
}
man.JoinRoom(roomJID, "tester2");
Here is the code I use to send a message into that chat room
if (XmppCon != null && XmppCon.ClientSocket.Connected)
{
if (inputText.Text.Length > 0)
{
agsXMPP.protocol.client.Message msg = new agsXMPP.protocol.client.Message(roomJID,MessageType.groupchat,inputText.Text);
XmppCon.Send(msg);
inputText.Text = "";
inputText.Focus();
}
}
{
if (inputText.Text.Length > 0)
{
agsXMPP.protocol.client.Message msg = new agsXMPP.protocol.client.Message(roomJID,MessageType.groupchat,inputText.Text);
XmppCon.Send(msg);
inputText.Text = "";
inputText.Focus();
}
}
All help gratefully received!!!!!
Dave.