Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE-REQUEST] ability to detect if there are owners in the call #219

Open
chr4ss12 opened this issue May 30, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@chr4ss12
Copy link

it would be useful if you could expose .is_owner flag in the /presence API endpoint for each participant. We would like to easily see if there are any 'meeting owners' in a current call, but seems like it is not possible right now?

@chr4ss12 chr4ss12 added the enhancement New feature or request label May 30, 2023
@mattieruth
Copy link
Contributor

I'm not sure if this is what you are looking for, but there IS an owner field on each participant returned by participants(), so you could do the following to determine if an owner is in the call:

let ownerExists = Object.values(callObject.participants()).filter((p)=>p.owner).length > 0

@chr4ss12
Copy link
Author

thank you, I am aware of that. I would clarify: we need this functionality on the backend side of things, we need to know if there are any owners in the room (by polling /presence every minute to detect that, which drives some business logic)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants