Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitter sunsetting: Can't go back to previous room version if I've never been there #24453

Closed
Tracked by #24262
andybalaam opened this issue Feb 7, 2023 · 10 comments
Closed
Tracked by #24262
Assignees
Labels
A-Room-Upgrades A-Timeline O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Z-Gitter Issues relating to or coming out of the Gitter migration, feature parity, etc

Comments

@andybalaam
Copy link
Contributor

Steps to reproduce

  1. Visit a room that has a predecessor (defined in the create event, or, if you like, defined via MSC2946 if you've enabled the labs flag).
  2. Scroll to the top
  3. Look for the "This room is a continuation of another conversation." tile

Outcome

What did you expect?

The tile to appear, and to be able to (attempt to) go back to the predecessor room.

What happened instead?

No tile appeared, and this error message appeared in the console:

Failed to find predecessor room with id !etcetc:gitter.im

Operating system

Ubuntu 22.04

Browser information

Firefox 109.0.1

URL for webapp

https://develop.element.io

Application version

Element version: 27f1d99-react-5ac014ff294d-js-8a3d7d5671e5 Olm version: 3.2.12

Homeserver

matrix.org

Will you send logs?

No

@andybalaam
Copy link
Contributor Author

Workaround: if you post a normal message linking to the predecessor, then after the user has clicked that link, they will see the tile as normal.

@daniellekirkwood daniellekirkwood added S-Major Severely degrades major functionality or product features, with no satisfactory workaround O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience labels Feb 7, 2023
@MadLittleMods
Copy link
Contributor

No tile appeared, and this error message appeared in the console:

Failed to find predecessor room with id !etcetc:gitter.im

Alongside fixing the problem here for the tile to show, we should update our tiles to show an error more clearly whenever a tile fails to appear. Showing some error feedback is much better than silently failing and having the user go on a goose chase to find out why it's not there or just assume they've done something wrong.

@Johennes Johennes assigned andybalaam and unassigned andybalaam Feb 8, 2023
@Johennes Johennes changed the title Can't go back to previous room version if I've never been there Gitter sunsetting: Can't go back to previous room version if I've never been there Feb 10, 2023
@MadLittleMods MadLittleMods added the Z-Gitter Issues relating to or coming out of the Gitter migration, feature parity, etc label Feb 14, 2023
@andybalaam andybalaam removed their assignment Feb 22, 2023
@andybalaam
Copy link
Contributor Author

andybalaam commented Feb 22, 2023

The fix for this is #24611 <- that was closed in favour of this.

@andybalaam
Copy link
Contributor Author

The latest version of matrix-org/matrix-spec-proposals#3946 includes a via_servers property that helps us find a predecessor room if the user has never opened it before.

Adapt the room predecessor code to use store and this property where it helps.

@t3chguy
Copy link
Member

t3chguy commented Mar 15, 2023

@andybalaam your comment above says this is fixed by #24611 ? Should this be closed?

@andybalaam
Copy link
Contributor Author

@t3chguy no, #24611 was closed in favour of this one. I'll update my comment.

@andybalaam
Copy link
Contributor Author

No tile appeared, and this error message appeared in the console:

Failed to find predecessor room with id !etcetc:gitter.im

Alongside fixing the problem here for the tile to show, we should update our tiles to show an error more clearly whenever a tile fails to appear. Showing some error feedback is much better than silently failing and having the user go on a goose chase to find out why it's not there or just assume they've done something wrong.

For this tile, I've addressed this issue in matrix-org/matrix-react-sdk#10483 .

@andybalaam
Copy link
Contributor Author

@MadLittleMods when matrix-org/matrix-react-sdk#10483 is merged, this should work for Gitter, BUT only when you have sent new predecessor events that contain via_servers properties.

@MadLittleMods
Copy link
Contributor

Thanks for the fix and heads-up @andybalaam! I'm tracking re-sending the MSC3946 predecessor events with via_servers for all of the Gitter rooms in https://gitlab.com/gitterHQ/gitter.im/-/issues/10

@andybalaam
Copy link
Contributor Author

Fixed by matrix-org/matrix-react-sdk#10483

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Room-Upgrades A-Timeline O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Z-Gitter Issues relating to or coming out of the Gitter migration, feature parity, etc
Projects
None yet
5 participants