Question about listening to videoConference state


I am currently developing an application which uses the Jitsi Meet API. The application would like to know whether the user is currently connected to a video conference and use that information to display state to other users in other parts of the application.

I am currently getting the state by listening to the videoConferenceJoined and videoConferenceLeft events and updating an online status to “online” or “offline” when either event fires. However, I am experiencing issues with solution as the state does not seem reliable.

Are there any better solutions for getting the video conference joined state? There does not seem to be any getIsVideoConferenceJoined or getCurrentVideoConference methods in the API to check / update the status.

Thanks in advance