0

我正在向 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);
}

我无法收到它但是当消息类型是聊天时我能够收到它为什么会这样

4

1 回答 1

2

如果 的值to不是MUC 的 JID,则消息无效,因为Type.Groupchat在与 MUC 实例通信时有效(XEP-0045)。

于 2013-01-24T08:40:45.370 回答