Explorar el Código

Bugfix. Check if CSI is enabeld before sending.

JC Brand hace 10 años
padre
commit
7703b9b33c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      converse.js

+ 1 - 1
converse.js

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