Skip to content

Say the room was not found when rejoining one you have left - #34639

Open
hayaksi1 wants to merge 1 commit into
element-hq:developfrom
hayaksi1:pr/rejoin-room-not-found
Open

Say the room was not found when rejoining one you have left#34639
hayaksi1 wants to merge 1 commit into
element-hq:developfrom
hayaksi1:pr/rejoin-room-not-found

Conversation

@hayaksi1

@hayaksi1 hayaksi1 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Pressing rejoin on a room you had left and getting a 404 back produced the error written for
somebody who pasted a bare room ID: that room IDs are internal identifiers, that a list of servers
was needed, and that an address should be used instead. Nobody on that path typed anything. The
preview bar offering the rejoin is only shown because the client knows the room and knows the
membership is leave, so the advice cannot apply.

A 404 for a room the client already knows and has left now gets its own message saying the room
could not be found. The wording is deliberately hedged rather than declaring the room deleted,
because a 404 here can equally mean that no server the homeserver can reach is still in it.

The bare room ID message is unchanged and still shown for the case it was written for.

Tests: a case in RoomViewStore-test.ts for a 404 on a room whose membership is leave, asserting
the description; it fails without the change.

Fixes #25627

Checklist

@hayaksi1
hayaksi1 requested a review from a team as a code owner August 8, 2026 19:23
@hayaksi1
hayaksi1 requested review from dbkr and t3chguy August 8, 2026 19:23
@github-actions github-actions Bot added the Z-Community-PR Issue is solved by a community member's PR label Aug 8, 2026
@t3chguy
t3chguy requested a review from a team August 10, 2026 09:20
@americanrefugee

Copy link
Copy Markdown

Please provide a screenshot

@hayaksi1

Copy link
Copy Markdown
Contributor Author

@americanrefugee

Visual Changes

View / State Before After
Panel 1-before 2-after

@americanrefugee americanrefugee left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, but I'd like to make some changes:

  • Use a smaller modal
  • Update the text to be more human readable
  • Change the description text color to Secondary

Here is a design proposal:

Image

@hayaksi1
hayaksi1 force-pushed the pr/rejoin-room-not-found branch from 10c7d39 to bccb3c7 Compare August 11, 2026 09:49
@hayaksi1

Copy link
Copy Markdown
Contributor Author

@americanrefugee

Visual Changes

View / State Current
Panel 1-before

@TemoCrevlis

TemoCrevlis commented Aug 11, 2026

Copy link
Copy Markdown

Could you look at these too?
Other dialogues that could be refined:

Leave Room Dialogue: Last member #34318.

Promotion Dialogue #34299.

Leave Room Dialogue: Private room +1 admin #34296.

@hayaksi1

Copy link
Copy Markdown
Contributor Author

Could you look at these too? Other dialogues that could be refined:

Leave Room Dialogue: Last member #34318.

Promotion Dialogue #34299.

Leave Room Dialogue: Private room +1 admin #34296.

#34296 --> #34659
#34299 --> #34658

@TemoCrevlis

TemoCrevlis commented Aug 11, 2026

Copy link
Copy Markdown

The PRs don't seem to be aimed at altering the dialogue in terms of readability. Rather it addresses an issue that happens to have a visual component.
Hopefully you might be able to incorporate some of the suggestions in the aforementioned issues for the visual component.

@TemoCrevlis

TemoCrevlis commented Aug 11, 2026

Copy link
Copy Markdown

"Can't" and "Can" can be confused, particularly when scanning or hearing the text.
Would recommend "Cannot" or "Could not" for consistency with full-form language used in dialogues.

Here I used "could not" since it implies an outcome or result of the attempted search and join request.

Failed to join room

This room could not be found. It may no longer exist or is unavailable from your server.

Alternative

1.

Failed to join room

This The room could not be found. It may no longer exist or is unavailable from your server.

"The" seems more appropriate since it keeps the context of the last action, reporting a result rather than pointing to a subject.

2.

*(Prefer this one)

Room not found

The room may no longer exist or is unavailable from your server.

Putting the reason summary as the heading may work well too as the error implies a failure to join.

@americanrefugee

Copy link
Copy Markdown

2.

*(Prefer this one)

Room not found

The room may no longer exist or is unavailable from your server.

I like prefer this one as well. Good call @TemoCrevlis

Pressing rejoin on a room you had left and getting a 404 back produced the error written for
somebody who pasted a bare room ID: that room IDs are internal identifiers, that a list of servers
was needed, and that an address should be used instead. Nobody on that path typed anything - the
preview bar offering the rejoin is only shown because the client knows the room and knows the
membership is leave, so the advice cannot apply. A 404 for a room the client already knows and has
left now gets its own message, hedged rather than declaring the room deleted, because a 404 here
can equally mean that no server your homeserver can reach is still in it. The bare room ID message
is unchanged and still shown for the case it was written for.

Not being found is the whole of what happened, so it reads as the heading and the body is left to
carry only why it might have happened. That costs this one branch a title of its own where the
other join failures share one, but the alternative spends the most-read line restating the failure
above a sentence that already explains it. The shared title still gains the noun it was missing,
"Failed to join room", for the failures that keep it.

The dialog carried the shared 60vw width, which stranded one short sentence across 784px with a
68px hole above the button. It is now sized to its message, the description takes the secondary
text colour, and the single button spans the width it belongs to. A wrapper class scopes that to
the join failure dialog rather than changing the error dialog generally, since the others have not
been looked at.
@hayaksi1
hayaksi1 force-pushed the pr/rejoin-room-not-found branch from bccb3c7 to add1136 Compare August 12, 2026 12:29
@hayaksi1

Copy link
Copy Markdown
Contributor Author

@americanrefugee

Visual Changes

View / State Current
Panel 1-before

@hayaksi1 hayaksi1 changed the title Say a room could not be found when rejoining one you have left Say the room was not found when rejoining one you have left Aug 12, 2026
@hayaksi1

Copy link
Copy Markdown
Contributor Author

@t3chguy @americanrefugee Can be merged?

@americanrefugee

Copy link
Copy Markdown

The visual changes LGTM, but I'll let @t3chguy respond to whether or not this can be merged.

@t3chguy

t3chguy commented Aug 20, 2026

Copy link
Copy Markdown
Member

@americanrefugee can you approve the PR then, you still have Requested changes

image

@dbkr dbkr added the T-Defect label Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-Defect Z-Community-PR Issue is solved by a community member's PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ambiguous message: "You attempted to join using a room ID without providing a list of servers to join through."

6 participants