bigbluebutton / bigbluebutton-html-plugin-sdk

BigBlueButton Plugin SDK
GNU Lesser General Public License v3.0
7 stars 5 forks source link

feat(client): add new hook useCurrentUser #20

Closed GuiLeme closed 11 months ago

GuiLeme commented 11 months ago

What does this PR do?

It adds the new hook useCurrentUser. It pairs with the PR https://github.com/bigbluebutton/bigbluebutton/pull/18799 from the core BBB

Motivation

The current presentation when fetched by a common user (not presenter), ends up with some crashes in the console (because it hasn't permission to fetch presentation data). So to avoid this situation, the developer can check if the current user has presenter, to proceed with visualizing the content of current presentation.