From b5ccd7c0877ed16ada0fa86a58a026fcd9a395bd Mon Sep 17 00:00:00 2001 From: CSantosM <4a.santos@gmail.com> Date: Sun, 18 Jan 2026 16:38:55 +0100 Subject: [PATCH] frontend: Enhance meeting component to manage participant left events and update state --- .../meeting/pages/meeting/meeting.component.html | 4 ++-- .../meeting/pages/meeting/meeting.component.ts | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/pages/meeting/meeting.component.html b/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/pages/meeting/meeting.component.html index 878d048f..705dc314 100644 --- a/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/pages/meeting/meeting.component.html +++ b/meet-ce/frontend/projects/shared-meet-components/src/lib/domains/meeting/pages/meeting/meeting.component.html @@ -13,7 +13,7 @@

Unable to load the lobby. Please try reloading the page.

} -} @else { +} @else if (!isMeetingLeft()) { ; protected meetingService = inject(MeetingService); protected participantService = inject(RoomMemberService); @@ -196,6 +201,14 @@ export class MeetingComponent implements OnInit { window.open(`/room/${this.roomId()}/recordings?secret=${this.roomSecret()}`, '_blank'); } + /** + * Handles the participant left event and hides the videoconference component + */ + protected onParticipantLeft(event: any): void { + this.isMeetingLeft.set(true); + this.eventHandlerService.onParticipantLeft(event); + } + /** * Centralized logic for managing video pinning based on * remote participants and local screen sharing state.