Commit 9a8d1921 authored by Deuteu's avatar Deuteu

Multiple bind

Restoring a chatbox wasnt unbinding event then the unread counter for a chatbox was multiply by the time you minized it.
parent c9e031e1
...@@ -3079,6 +3079,7 @@ ...@@ -3079,6 +3079,7 @@
if (ev && ev.preventDefault) { if (ev && ev.preventDefault) {
ev.preventDefault(); ev.preventDefault();
} }
this.model.messages.off('add',null,this);
this.remove(); this.remove();
this.model.maximize(); this.model.maximize();
}, 200) }, 200)
......
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