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

This commit is contained in:
JC Brand 2017-05-23 18:15:28 +02:00
parent 184f08157c
commit bab80a3234

View File

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