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
Terms modal prompt should appear without a flash of the integration manager portal first #10386
At the moment, when testing the terms support from matrix-org/matrix-react-sdk#3199, whenever we need to display terms for the IM API, the following happens:
It's a bit glitchy feeling UX-wise.
This avoids a visual glitch where the Integration Manager portal would briefly appear, but then be replaced by a smaller Terms dialog when there's something to agree to. To resolve this minimal code churn, this cheats a bit and customises the size of the terms dialog to match the IM portal modal when terms are shown for IM purposes. Fixes vector-im/riot-web#10386