Skip to content

Invites should check more thoroughly if a user exists #7137

@Half-Shot

Description

@Half-Shot

The current behaviour of Riot is to dumbly accept any mxid you give it and invite that user. This happens in both the invite and start chat dialog. Worse than that, it shows you an entry for them in the dropdown suggestion list so long as it's a valid MXID.

image

  • We could validate these mxids by their /profile, though I believe it would not be sensible to use /profile as the only source of truth.
  • We could add an "I'm feeling lucky" button to invite the user anyway if we definitely believe they exist.
  • We should at the very minimum say "This user could not be found, it's possible they are hidden or simply do not exist".

For user's on bridges, we should be doing proper lookups on the bridge. I believe we could fix this by doing a user lookup on the bridge if a /profile request comes in for them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1S-MajorSeverely degrades major functionality or product features, with no satisfactory workaroundT-Defect

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions