Commit c219d370 authored by JC Brand's avatar JC Brand

Bugfix. Handle attrs not being defined

parent 2ff18c2c
...@@ -498,7 +498,7 @@ ...@@ -498,7 +498,7 @@
} }
if (_.isString(jids)) { if (_.isString(jids)) {
if (!attrs.fullname) { if (attrs && !_.get(attrs, 'fullname')) {
attrs.fullname = _.get(_converse.api.contacts.get(jids), 'attributes.fullname'); attrs.fullname = _.get(_converse.api.contacts.get(jids), 'attributes.fullname');
} }
const chatbox = _converse.chatboxes.getChatBox(jids, attrs, true); const chatbox = _converse.chatboxes.getChatBox(jids, attrs, true);
......
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