-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Fixed loading issue of user verification in user info panel #30574
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
base: develop
Are you sure you want to change the base?
Fixed loading issue of user verification in user info panel #30574
Conversation
EXI-Gangwar, Kanchan seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋, Thanks for the detailed description but I don't think this is right.
You removed two conditions from canVerify
relating to devices and moved isMe
out of that variable to be passed separately to the view. I'm not sure what this accomplishes?
We should have a step by step repro of the issue first because I can't really repro the spinner issue on my end.
To reproduce this issue follow below steps -
I have mentioned scenarios for which this can happen in PR. |
Looking at the code, I can see that this can happen if your device isn't verified. |
In that case, spinner will not be shown instead user will get the message "user verification unavailable" and as soon as CrossSigninKeys are fetched accordingly "Verify User" link will be shown. |
Right, the spinner will not be shown which is what we want. Verify link button would also not be shown because Anyhow, I think it's more appropriate to render nothing in that section for own user so I would suggest doing the following:
Also need to make sure that the failing checks passes. |
This will not always work. For example, let say we got hasCrossSigningKeys as true but devices list is still not retrieve and it is empty. In this case user will see spinner first then user verification unavailable message then verify user link once device list is retrieved. Since user will have CrossSigninKeys only when he is using any device, I would suggest we go with -
|
Issue Summary
Changes are done to fix loading issue of user verification in user info panel. Currently, if you select any user from members list of a room, user info panel opens up where we get an option to verify user.
For certain users in the list verify user option doesn't shows up instead just a spinner keeps on loading. Certain scenarios for which this could happen are -
### Changes
Changes are done to show "user verification unavailable" for the scenarios mentioned above instead of showing spinner loading. For good user experience it's better to show some message instead of just showing spinner and keep on loading.
Below are the screenshots of before and after the code changes -
Before the changes
After the changes