Commit ea04b117 authored by JC Brand's avatar JC Brand

Try to fix what appears to be a timing bug

parent 2cd0a166
......@@ -760,8 +760,8 @@
// by browser.
_converse.connection.flush();
_converse.initSession();
_converse.setUserJid();
_converse.initSession();
_converse.enableCarbons();
// If there's no xmppstatus obj, then we were never connected to
......
......@@ -1717,7 +1717,7 @@
var item = sizzle('x[xmlns="'+Strophe.NS.MUC_USER+'"] item', pres).pop();
if (_.isNil(item)) { return; }
var jid = item.getAttribute('jid');
if (utils.isSameBareJID(jid, _converse.bare_jid)) {
if (utils.isSameBareJID(jid, _converse.connection.jid)) {
var affiliation = item.getAttribute('affiliation');
var role = item.getAttribute('role');
if (affiliation) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment