mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-19 16:15:16 +00:00
Add check for video calls
This commit is contained in:
@ -21,4 +21,14 @@ export class CallsHelper {
|
||||
&& conf().rtc_relay.maxUsersPerCalls >= conv.members.size) === true
|
||||
}
|
||||
|
||||
/**
|
||||
* Check out whether a given conversation is allowed to make video
|
||||
* calls or not
|
||||
*
|
||||
* @param conv Target conversation
|
||||
*/
|
||||
public static CanHaveVideoCAll(conv: Conversation) : boolean {
|
||||
return this.CanHaveCall(conv) && conf().rtc_relay.allowVideo;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user