浏览代码

No need to set num_unread, it has a default value.

JC Brand 8 年之前
父节点
当前提交
bab80a3234
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      src/converse-controlbox.js

+ 1 - 4
src/converse-controlbox.js

@@ -163,10 +163,7 @@
             ChatBox: {
             ChatBox: {
                 initialize: function () {
                 initialize: function () {
                     if (this.get('id') === 'controlbox') {
                     if (this.get('id') === 'controlbox') {
-                        this.set({
-                            'time_opened': moment(0).valueOf(),
-                            'num_unread': 0
-                        });
+                        this.set({'time_opened': moment(0).valueOf()});
                     } else {
                     } else {
                         this.__super__.initialize.apply(this, arguments);
                         this.__super__.initialize.apply(this, arguments);
                     }
                     }