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:
hmuresan 2021-06-24 14:33:58 +03:00 committed by Horatiu Muresan
parent 74d65ff596
commit 38b14c5d62
1 changed files with 4 additions and 0 deletions

View File

@ -2186,6 +2186,10 @@ export default {
id: localParticipant.id,
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));
});