frontend: Implement endMeeting method in HttpService and update WebComponentManagerService to use it
This commit is contained in:
parent
446310f935
commit
e3ee41c827
@ -47,6 +47,10 @@ export class HttpService {
|
|||||||
return this.getRequest(`${this.INTERNAL_API_PATH_PREFIX}/rooms/${roomId}/roles/${secret}`);
|
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 }> {
|
generateParticipantToken(tokenOptions: TokenOptions): Promise<{ token: string }> {
|
||||||
return this.postRequest(`${this.INTERNAL_API_PATH_PREFIX}/participants/token`, tokenOptions);
|
return this.postRequest(`${this.INTERNAL_API_PATH_PREFIX}/participants/token`, tokenOptions);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -71,7 +71,7 @@ export class WebComponentManagerService {
|
|||||||
// Moderator only
|
// Moderator only
|
||||||
if (this.contextService.isModeratorParticipant()) {
|
if (this.contextService.isModeratorParticipant()) {
|
||||||
const roomId = this.contextService.getRoomId();
|
const roomId = this.contextService.getRoomId();
|
||||||
await this.httpService.deleteRoom(roomId);
|
await this.httpService.endMeeting(roomId);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case WebComponentActionType.TOGGLE_CHAT:
|
case WebComponentActionType.TOGGLE_CHAT:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user