浏览代码

Bugfix. Handle attrs not being defined

JC Brand 7 年之前
父节点
当前提交
c219d37083
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/converse-chatboxes.js

+ 1 - 1
src/converse-chatboxes.js

@@ -498,7 +498,7 @@
                         }
 
                         if (_.isString(jids)) {
-                            if (!attrs.fullname) {
+                            if (attrs && !_.get(attrs, 'fullname')) {
                                 attrs.fullname = _.get(_converse.api.contacts.get(jids), 'attributes.fullname');
                             }
                             const chatbox = _converse.chatboxes.getChatBox(jids, attrs, true);