Commit e303992e authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Call onuser when deleting stream.

parent 7527aeba
......@@ -1106,7 +1106,9 @@ Stream.prototype.close = function(replace) {
delete(c.sc.down[c.id]);
else
console.warn('Closing unknown stream');
recomputeUserStreams(c.sc, c.source);
let changed = recomputeUserStreams(c.sc, c.source);
if(changed && c.sc.onuser)
c.sc.onuser.call(c.sc, c.source, "change");
}
c.sc = null;
......
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