浏览代码

Fix #1664 Blacklisting converse-profile makes the control box totally blank

Réda Housni Alaoui 6 年之前
父节点
当前提交
edcb8e28c2
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 1 0
      CHANGES.md
  2. 3 0
      src/converse-controlbox.js

+ 1 - 0
CHANGES.md

@@ -59,6 +59,7 @@
 - #1579: Trim spaces at the beginning and end of a JID (when adding contact)
 - #1585: Upload files by pasting from clipboard
 - #1586: Not possible to kick someone with a space in their nickname
+- #1664: Blacklisting converse-profile makes the control box totally blank
 
 ### Breaking changes
 

+ 3 - 0
src/converse-controlbox.js

@@ -476,6 +476,9 @@ converse.plugins.add('converse-controlbox', {
             className: 'controlbox-pane',
 
             initialize () {
+                if (!_converse.XMPPStatusView) {
+                    return;
+                }
                 _converse.xmppstatusview = new _converse.XMPPStatusView({
                     'model': _converse.xmppstatus
                 });