-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
3PID invites don't work if you reuse the same tab you're registering with #13430
Comments
If you share the email after reusing the same tab, it'll figure it out. Otherwise it largely seems to expect multiple tabs to be used. |
So I think there's a whole collection of problems here, but possibly the root of the problem is that once you're done signing up, we now don't log you in straight away, instead telling you to sign in, and we don't persist the invite intent after you signed in, so we dump you in an empty client rather than prompting you to join the room you were invited to. In which case the fix would be to show the room you were invited to after you sign in, although it's still a complex process. As Travis says, the 3pid invite won't come through as a regular invite unless you go into settings and share the email (clicking a third email link!) because we don't publish mappings to ISes by default in a post-privacy world. I'm not sure what bearing re-using tabs has on anything. |
This is biting some VIPs. |
@ara4n @neilisfragile At the moment, we're a bit stuck on this one, because as @dbkr suggests above, it's unclear what change we actually want to make here. I'll leave this in the fire column for now until Neil returns so we remember to discuss it. |
I can't reproduce this, and am unclear what the actual root issue is here. We seem to have made Element remember the room ID you were looking at, though it can disappear with ease. I've flagged #15131 to cover a related case to this. Some reports are that a login link isn't working, but I've been unable to reproduce any significant problems on 3 different stacks (local, matrix.org, custom). The overall flow is pretty terrible, which might be the bug here. I've tracked this as #15130 pending design to triage. |
Right, so this issue is complicated but boils down to us losing state due to people pasting the identity server verification link over top of the app. Fixing that properly leads into some cobwebs around the auth system, so as a quick win we're going to fix this for the affected VIPs using alternative methods (if possible) and look at resolving this properly alongside the numerous other 3pid invite issues. |
For others trying to fix this: the solution is to run 3PID invites through the homeserver rather than the identity server. For Synapse this means not using |
This is a step towards element-hq/element-web#13430 Since we've stored the invite, we can send the user to it once they reload the page or revisit Element. We currently only support one invite at a time, but this should be fine for most cases. We only do this restoration if the next screen isn't set to avoid breaking the user out of an expected flow. As an added touch, this also ensures that the email address is pre-filled on the registration page if needed, just in case the user refreshes before getting to the submit button.
To reproduce:
The text was updated successfully, but these errors were encountered: