Forráskód Böngészése

[bugfix] merge typing chans issue

B Thibault 8 éve
szülő
commit
9196c9e853
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      srv/src/slackData.js

+ 1 - 1
srv/src/slackData.js

@@ -811,7 +811,7 @@ SlackData.prototype.buildStatic = function(t, now) {
             res["groups"].push(group);
     }
     for (var typingChan in this.typing) {
-        var tChan;
+        var tChan = null;
         for (var typingUser in this.typing[typingChan]) {
             if (this.typing[typingChan][typingUser] +3000 >= now) {
                 if (!tChan) tChan = {};