WIP MUC join fix
This commit is contained in:
parent
e0417a8a4d
commit
26844a2b70
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue