Skip to content

Conversation

langleyd
Copy link
Member

@langleyd langleyd commented Oct 8, 2025

What's in this PR?

It adds the RoomViewStore to the constructor of RoomView and add's it to the RoomView state which in turn is used as the RoomContext. This means the RoomViewStore can be accessed from the RoomContext within the component hierarchy of the RoomView.. This is needed if are to support multiple RoomViews/RoomViewStores(instead of the singleton RoomViewStore).

A second PR will follow that updates the usages of the RoomViewStore within the RoomView sub-components to use the one from the RoomContext.

Comment on lines 167 to 168
// The room view store for the room we are displaying
roomViewStore: RoomViewStore;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// The room view store for the room we are displaying
roomViewStore: RoomViewStore;
/**
* The room view store for the room we are displaying
*/
roomViewStore: RoomViewStore;


// Called with the credentials of a registered user (if they were a ROU that transitioned to PWLU)
onRegistered?(credentials: IMatrixClientCreds): void;
roomViewStore: RoomViewStore;
Copy link
Member

Choose a reason for hiding this comment

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

missing tsdoc

@langleyd langleyd added this pull request to the merge queue Oct 23, 2025
Merged via the queue into develop with commit bea3574 Oct 23, 2025
35 checks passed
@langleyd langleyd deleted the langleyd/context-provided-room-view-store branch October 23, 2025 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-Task Tasks for the team like planning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants