1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 15:25:48 +01:00

Call onuser when deleting stream.

This commit is contained in:
Juliusz Chroboczek 2022-03-25 17:03:42 +01:00
parent 7527aeba3d
commit e303992e45

View file

@ -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;