Commit 79fba8a6 authored by JC Brand's avatar JC Brand

Bugfix. Didn't call debounced method.

Causing the chat box to not appear when a new message is received.
parent 1675109e
...@@ -1547,7 +1547,7 @@ ...@@ -1547,7 +1547,7 @@
converse.incrementMsgCounter(); converse.incrementMsgCounter();
} }
if (!this.model.get('minimized') && !this.$el.is(':visible')) { if (!this.model.get('minimized') && !this.$el.is(':visible')) {
_.debounce(this.show, 100); _.debounce(this.show.bind(this), 100)();
} }
}, },
...@@ -2022,8 +2022,7 @@ ...@@ -2022,8 +2022,7 @@
} }
this.setChatState(ACTIVE); this.setChatState(ACTIVE);
this.scrollDown().focus(); this.scrollDown().focus();
}.bind(this) }.bind(this));
);
return this; return this;
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment