Skip to content

Warning about inviting unknown users is not shown when creating a room via "Start chat" #24830

@anoadragon453

Description

@anoadragon453

Steps to reproduce

  1. Click the + "Start chat" button next to the header of the People section of the room list.
  2. Attempt to start a chat with a user that you know does not exist (and alternatively, on a homeserver you know does exist).
  3. Click "Go"
  4. You are let through to the next stage without any warnings.
  5. Send a message to create the room.

If you chose a non-existent localpart on a real matrix homeserver domain, then that non-existent user will have an invite (which the homeserver received). If a user is ever created under that localpart, then they will find that invite waiting for them when they log in for the first time.

If you chose a non-existent homeserver domain, then you will end up in a broken room.

Outcome

What did you expect?

The following errors appear when attempting to invite a non-existent user through the "Invite" dialog in an existing Matrix room.

When attempting to invite a non-existent localpart on an existing homeserver:

image

When attempting to invite any user on a non-existent homeserver:

image

What happened instead?

For a non-existent user on an existing homeserver, no warning is presented on clicking Go here:

Screenshot_20230315_165033

When attempting to contact a user on a non-existent homeserver, you end up with a broken room. Clicking retry does nothing:

image

To actually leave these rooms, user have to search for "Empty room" in their list of rooms and select it. This will take them to the same room, but with a composer that is usable. They can then leave the room from there.

Operating system

NixOS

Application version

Element version: 1.11.24 Olm version: 3.2.12

How did you install the app?

nixpkgs package repository

Homeserver

No response

Will you send logs?

No

Metadata

Metadata

Assignees

Labels

A-DM-StartCreating a DM with another userA-DMsO-UncommonMost users are unlikely to come across this or unexpected workflowS-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