Commit 741be5cc authored by JC Brand's avatar JC Brand

converse-muc: Handle VCards not being available

parent 624cf4f4
......@@ -66787,7 +66787,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_3__["default"].plugins.add('converse-muc
throw new Error("Can't call _converse.getDefaultMUCNickname before the statusInitialized has been fired.");
}
const nick = _converse.nickname || _converse.xmppstatus.vcard.get('nickname');
const nick = _converse.nickname || _converse.vcards ? _converse.xmppstatus.vcard.get('nickname') : undefined;
if (nick) {
return nick;
......@@ -147,7 +147,7 @@ converse.plugins.add('converse-muc', {
throw new Error(
"Can't call _converse.getDefaultMUCNickname before the statusInitialized has been fired.");
}
const nick = _converse.nickname || _converse.xmppstatus.vcard.get('nickname');
const nick = _converse.nickname || _converse.vcards ? _converse.xmppstatus.vcard.get('nickname') : undefined;
if (nick) {
return nick;
} else if (_converse.muc_nickname_from_jid) {
......
......@@ -45181,7 +45181,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_3__["default"].plugins.add('converse-muc
throw new Error("Can't call _converse.getDefaultMUCNickname before the statusInitialized has been fired.");
}
const nick = _converse.nickname || _converse.xmppstatus.vcard.get('nickname');
const nick = _converse.nickname || _converse.vcards ? _converse.xmppstatus.vcard.get('nickname') : undefined;
if (nick) {
return nick;
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