mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-07-14 13:48:04 +00:00
Can get the list of members of a call
This commit is contained in:
src
@ -64,4 +64,20 @@ export class UserWebSocketRequestsHandler extends BaseRequestsHandler {
|
||||
|
||||
this.sentResponse = true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the ID of a call included in WebSocket request
|
||||
*
|
||||
* @param name The name of the parameter
|
||||
*/
|
||||
public postCallId(name: string) : number {
|
||||
const convID = this.postInt(name);
|
||||
|
||||
// Check if the user is a member of this call
|
||||
if(!this.wsClient.activeCalls.has(convID))
|
||||
this.error(401, "You do not belong to this call!")
|
||||
|
||||
return convID;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user