我正在向jabber发送一条消息,
Message msgMultipleChat = new Message(to);//,Message.Type.chat);
msgMultipleChat.setBody(inputChatText);
msgMultipleChat.setType(Message.Type.groupchat);
msgMultipleChat.setFileType("text");
msgMultipleChat.setFile("");
//msgMultipleChat.setFriendName(userIds);
msgMultipleChat.setFrom(userIds);
msgMultipleChat.setGroupId(mGroupId);
if(BizproConnection.mXMPPConnection.getHost()!=null ) {
BizproConnection.mXMPPConnection.sendPacket(msgMultipleChat);
}我不能接收它,但是当消息类型是聊天时,我可以接收它,为什么会这样?
发布于 2013-01-24 16:40:45
如果to的值不是MUC的JID,则消息无效,因为Type.Groupchat仅在与MUC实例(XEP-0045)通信时有效。
https://stackoverflow.com/questions/14483417
复制相似问题