Browse Source

Bugfix. Check if CSI is enabeld before sending.

JC Brand 10 years ago
parent
commit
7703b9b33c
1 changed files with 1 additions and 1 deletions
  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') {