浏览代码

Bugfix. Check if CSI is enabeld before sending.

JC Brand 10 年之前
父节点
当前提交
7703b9b33c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -481,7 +481,7 @@
             }
             var stat = this.xmppstatus.getStatus();
             this.idle_seconds++;
-            if (this.idle_seconds > this.csi_waiting_time && !this.inactive) {
+            if (this.csi_waiting_time > 0 && this.idle_seconds > this.csi_waiting_time && !this.inactive) {
                 this.sendCSI(INACTIVE);
             }
             if (this.auto_away > 0 && this.idle_seconds > this.auto_away && stat !== 'away' && stat !== 'xa') {