浏览代码

Allow disabling of the bosh plugin

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

+ 1 - 1
src/headless/converse-bosh.js

@@ -17,7 +17,7 @@ const BOSH_SESSION_ID = 'converse.bosh-session';
 converse.plugins.add('converse-bosh', {
 
     enabled () {
-        return true;
+        return !_converse.api.settings.get("blacklisted_plugins").includes('converse-bosh');
     },
 
     initialize () {