1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-10 02:35:58 +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;