Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Use Room.findPredecessor when rendering RoomCreate tiles #10012

Conversation

andybalaam
Copy link
Member

@andybalaam andybalaam commented Jan 27, 2023

Prep for MSC3946

Part of element-hq/element-web#24323


This change is marked as an internal change (Task), so will not be included in the changelog.

@andybalaam andybalaam added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label Jan 27, 2023
@andybalaam andybalaam changed the title Use Room.findPredecessor to render RoomCreate tiles Use Room.findPredecessor when rendering RoomCreate tiles Jan 27, 2023
@andybalaam andybalaam force-pushed the andybalaam/RoomCreate-uses-getPredecessor branch from 90c97ef to e84eedd Compare January 30, 2023 11:52
@andybalaam andybalaam marked this pull request as ready for review January 30, 2023 11:55
@andybalaam andybalaam requested a review from a team as a code owner January 30, 2023 11:55
@andybalaam andybalaam requested review from richvdh and t3chguy January 30, 2023 11:55
@andybalaam andybalaam force-pushed the andybalaam/RoomCreate-uses-getPredecessor branch from e84eedd to c4afe9c Compare January 30, 2023 11:56
// use a different predecessor (e.g. through MSC3946) and still display it
// in the timeline location of the create event.
const roomContext = useContext(RoomContext);
const predecessor = roomContext.room.findPredecessor();
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't look like it'll react to the predecessor changing due to a new/updated state event coming in?

Copy link
Member Author

Choose a reason for hiding this comment

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

Addressed in 1b4c3f6 . Apologies for the rebase - fat-fingered it.

@andybalaam
Copy link
Member Author

Tests failed with Error: TypeError: this.client?.supportsThreads is not a function. This seems very weird - could it be running against a wrong branch? E.g. one from #9878 ?

@andybalaam
Copy link
Member Author

Cypress failure is flaky test element-hq/element-web#24351

@richvdh richvdh removed their request for review January 31, 2023 12:09
@andybalaam andybalaam requested a review from t3chguy February 1, 2023 14:35
@andybalaam andybalaam enabled auto-merge (squash) February 1, 2023 14:39
@andybalaam andybalaam merged commit 33b89a5 into matrix-org:develop Feb 1, 2023
@andybalaam andybalaam deleted the andybalaam/RoomCreate-uses-getPredecessor branch February 1, 2023 17:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants