WIP MUC join fix

This commit is contained in:
Xavier Del Campo Romero 2023-10-09 23:23:25 +02:00
parent e0417a8a4d
commit 26844a2b70
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 11 additions and 1 deletions

View File

@ -88,7 +88,17 @@ public class MucManager : StreamInteractionModule, Object {
}
mucs_todo[account].add(jid.with_resource(nick_));
Muc.JoinResult? res = yield stream.get_module(Xep.Muc.Module.IDENTITY).enter(stream, jid.bare_jid, nick_, password, history_since, receive_history, null);
var? module = stream.get_module(Xep.Muc.Module.IDENTITY);
if (module == null) {
var res = new Muc.JoinResult();
res.muc_error = null;
res.nick = null;
res.stanza_error = "unexpected null module";
return res;
}
Muc.JoinResult? res = yield module.enter(stream, jid.bare_jid, nick_,
password, history_since, receive_history, null);
mucs_joining[account].remove(jid);