chore(replace-participant) Send `readyToClose` event when a replaced participant is kicked
- the embedding app can decide to dispose the iframe in this case
This commit is contained in:
parent
74d65ff596
commit
38b14c5d62
|
@ -2186,6 +2186,10 @@ export default {
|
||||||
id: localParticipant.id,
|
id: localParticipant.id,
|
||||||
isReplaced
|
isReplaced
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
// we send readyToClose when kicked participant is replace so that
|
||||||
|
// embedding app can choose to dispose the iframe API on the handler.
|
||||||
|
APP.API.notifyReadyToClose();
|
||||||
}
|
}
|
||||||
APP.store.dispatch(kickedOut(room, participant));
|
APP.store.dispatch(kickedOut(room, participant));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue