我正在使用 Xabber 开源项目,并能创建一个新的群组,但总是提示:房间已锁定,直到确认配置为止。我试图设置默认配置,但它抛出了异常:401 未被授权。具体问题是什么?
final MultiUserChat multiUserChat;
try {
multiUserChat = new MultiUserChat(xmppConnection, room);
// CHANAKYA: set default config for the MUC
// Send an empty room configuration form which indicates that we want
// an instant room
try {
multiUserChat.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));
} catch (XMPPException e) {
e.printStackTrace();
}