소스 검색

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);