Bugfix. Didn't call debounced method.

Causing the chat box to not appear when a new message is received.
This commit is contained in:
JC Brand 2015-07-20 09:54:56 +02:00
parent 1675109e71
commit 79fba8a6c6

View File

@ -1547,7 +1547,7 @@
converse.incrementMsgCounter();
}
if (!this.model.get('minimized') && !this.$el.is(':visible')) {
_.debounce(this.show, 100);
_.debounce(this.show.bind(this), 100)();
}
},
@ -2022,8 +2022,7 @@
}
this.setChatState(ACTIVE);
this.scrollDown().focus();
}.bind(this)
);
}.bind(this));
return this;
},