Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Prompt to accept integration manager polices on use #10088
You must read and agree to the policy documents provided by the integration manager
We considered whether it would be possible for Scalar to handle this "internally" (i.e. scalar presents HTML that gets rendered in iframes in Riot, so why not just let it do this same trick to handle t's and c's acceptance) - however, by the time it rendered such an acceptance UX you would already have shared the mxid with the integration manager via OpenID, so this is not feasible.
This defers the work to request the IM token when displaying a widget until after we know that widget will actually be shown and the user has granted permission for this widget to be displayed. This is useful in general to avoid making unnecessary token checks, but it's particularly helpful with the new Terms API, so that we only show the Terms flow when widget are actually being used (as opposed to entering the room where widgets exist, but haven't been shown / permitted). Part of vector-im/riot-web#10088