End jitsi call when member is banned (#8879)

* Jitsi call is ended when member is banned

* cypress tests for widget PIP close on leave/kick/ban

* copyright updated

* import changes

* import changes, lint fixed

* import changes

* smaller spec changes to fix problems

* stale import removed, win.matrixcs.RoomStateEvent.Events is used

* fixed problem with kick, smaller test optimisations

* comment removed

Co-authored-by: mikhail.aheichyk <mikhail.aheichyk@nordeck.net>
Co-authored-by: Oliver Sand <oliver.sand@nordeck.net>
This commit is contained in:
maheichyk
2022-08-19 15:09:26 +01:00
committed by GitHub
co-authored by mikhail.aheichyk Oliver Sand
parent 3bf52fc110
commit ef0ba77f14
2 changed files with 202 additions and 1 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ export default class AppTile extends React.Component<IProps, IState> {
}
private onMyMembership = (room: Room, membership: string): void => {
if (membership === "leave" && room.roomId === this.props.room?.roomId) {
if ((membership === "leave" || membership === "ban") && room.roomId === this.props.room?.roomId) {
this.onUserLeftRoom();
}
};