element-hq / element-hq/element-x-android

Improve error handling on failing to join an upgraded room

Open
#5,151 0 comments 5 reactions 0 assignees View on GitHub
T-Enhancement
Dominant language
Kotlin
Stars
2.4k
Forks
624
Avg merge
1d 14h
Merged PRs (30d)
149

Description

### Your use case

If an an invite-only room is upgraded to a new room version, you might not be able to join the new room if you were not invited.

EAX doesn't handle or communicate this well.

After the room version upgrade it still shows a banner that says "This room has been replaced and is no longer active" as well as a button that says "Jump to new room". When you click the button, it fails to display a room preview and simply shows a dialog that says "We couldn't display this room preview - This may be due to network or server issues." and gives you the options to Cancel or Retry. Even though this is a permission error.

Element Web communicates this a bit better, as the corresponding error message there says "Failed to join - MatrixError: [403] You are not invited to this room."

### Have you considered any alternatives?

_No response_

### Additional context

_No response_

### Are you willing to provide a PR?

No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.