mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Call onuser when deleting stream.
This commit is contained in:
parent
7527aeba3d
commit
e303992e45
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue