Since it's now possible to be disconnected from an identity server entirely (your session has no active identity server), it's unclear how some IS dependent features should function, such as:
Checking an email invite in the invite preview bar to ensure the invited email is for the active account (in case you have multiple Matrix accounts in different tabs, etc.)

I think we are at a stage where @lampholder needs to work out how the product should function for this case.
After some discussion, we'd like to use the following text for the different combinations:
Case: Email not added to account
Title: This invite to %(roomName)s was sent to [email protected] which is not associated with your account.
Subtitle: Link this email with your account in Settings to receive invites directly in Riot.
Case: Email added to account, no ID server
Title: This invite to %(roomName)s was sent to [email protected].
Subtitle: Use an identity server in Settings to receive invites directly in Riot.
Case: Email added to account, have ID server but email not bound
Title: This invite to %(roomName)s was sent to [email protected].
Subtitle: Share this email in Settings to receive invites directly in Riot.
Case: Email added to account, email bound on ID server (success case, unchanged from current)
Do you want to join %(roomName)s?
userName invited you
In all cases, the button will just say "Join the discussion".
The current text is actually:
This invite to Testo wasn't sent to your account
Sign in with a different account, ask for another invite, or add the e-mail address [email protected] to this account.
[ Try to join anyway ]
This is not correct or helpful. You don't need to take any of the steps suggested, and there is no 'try' - joining will just work.
We could make this more simple and more correct by:
This invite was sent to [email protected], but this email address is not associated with your account.
[ Join anyway ]
I think the three different possible situations are a combination of:
So I imagine we want some hints that might be subtly different for all of the combinations of those, eg. "Email added to account but not bound" might be, "This invite was sent to [email protected]. Share this email in settings to receive invites directly to Riot"
And yes, on "Try to join anyway" I would go even further personally and just make it, "Join". It should just be a hint that we're providing, it's not an error situation.
We don't know that the invite will succeed though - if the room is private then the join will fail still unless you also happen to be invited by mxid.
@lampholder it's also unclear what all the copy for the states is, if anything. Putting this back as blocked until we have copy for all the states we care about (ie: https://github.com/vector-im/riot-web/issues/10669#issuecomment-525861980 )
We don't know that the invite will succeed though - if the room is private then the join will fail still unless you also happen to be invited by mxid.
Is this true?
I:


As far as text for the different combinations, how about:
Email not added to account
This invite was sent to [email protected], but this email address is not associated with your account.
Email added to account, no ID server
This invite was sent to [email protected]. Use an identity server in Settings to receive invites directly in Riot.
Email added to account, have ID server but email not bound
This invite was sent to [email protected]. Share this email in Settings to receive invites directly in Riot.
Email added to account, email bound on ID server (success case, unchanged from current)
Do you want to join %(roomName)s?
userName invited you
In all cases, the button will just say "Join". @lampholder, how does this sound?
How about:
This invite was sent to [email protected] which is not associated with your account. Link this email address with your account in Settings to receive invites directly in Riot.
Otherwise looks good.
Okay, great. I posted the revised version in the top comment of this issue.
Is this true?
Technically, yes. The 'accept' button does a different thing than what you're imagining. It's claiming the invite because it has all the information to do so, even without your email being added.