Explorar o código

Bugfix. Check if CSI is enabeld before sending.

JC Brand %!s(int64=10) %!d(string=hai) anos
pai
achega
7703b9b33c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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') {