frontend: Implement endMeeting method in HttpService and update WebComponentManagerService to use it

This commit is contained in:
juancarmore 2025-04-14 11:43:09 +02:00
parent 446310f935
commit e3ee41c827
2 changed files with 5 additions and 1 deletions

View File

@ -47,6 +47,10 @@ export class HttpService {
return this.getRequest(`${this.INTERNAL_API_PATH_PREFIX}/rooms/${roomId}/roles/${secret}`);
}
endMeeting(roomId: string): Promise<any> {
return this.deleteRequest(`${this.INTERNAL_API_PATH_PREFIX}/meetings/${roomId}`);
}
generateParticipantToken(tokenOptions: TokenOptions): Promise<{ token: string }> {
return this.postRequest(`${this.INTERNAL_API_PATH_PREFIX}/participants/token`, tokenOptions);
}

View File

@ -71,7 +71,7 @@ export class WebComponentManagerService {
// Moderator only
if (this.contextService.isModeratorParticipant()) {
const roomId = this.contextService.getRoomId();
await this.httpService.deleteRoom(roomId);
await this.httpService.endMeeting(roomId);
}
break;
case WebComponentActionType.TOGGLE_CHAT: