From 79fba8a6c620a5dca7d232b07d2b371408dce60e Mon Sep 17 00:00:00 2001 From: JC Brand Date: Mon, 20 Jul 2015 09:54:56 +0200 Subject: [PATCH] Bugfix. Didn't call debounced method. Causing the chat box to not appear when a new message is received. --- converse.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/converse.js b/converse.js index db43c846b..87a71943d 100644 --- a/converse.js +++ b/converse.js @@ -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; },