Преглед на файлове

[bugfix] restored capacity informations

B Thibault преди 8 години
родител
ревизия
ac232e2b26
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      srv/src/context.js

+ 1 - 1
srv/src/context.js

@@ -242,7 +242,7 @@ ChatContext.prototype.toStatic = function(t) {
         }
         ,"emojis": this.emojis.version > t ? this.emojis.data : undefined
     };
-    if (t) {
+    if (this.staticV > t) {
         res["capacities"] = Object.keys(this.capacities);
     }
     if (this.commands.version > t) {