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

Pass a client into RoomNotifs.getRoomNotifsState #9631

Merged
merged 2 commits into from
Nov 29, 2022

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Nov 28, 2022

Pass an explicit client into RoomNotifs.getRoomNotifsState, rather than
relying on MatrixClientPeg. This resolves a race condition where we have a
component which thinks it is using a particular component, but
MatrixClientPeg has been updated.

A precursor to fixing element-hq/element-web#23819.


This PR currently has none of the required changelog labels.

Add one of: T-Deprecation, T-Enhancement, T-Defect, T-Task to indicate what type of change this is plus X-Breaking-Change if it's a breaking change.

Pass an explicit client into `RoomNotifs.getRoomNotifsState`, rather than
relying on `MatrixClientPeg`. This resolves a race condition where we have a
component which thinks it is using a particular component, but
`MatrixClientPeg` has been updated.

A precursor to fixing element-hq/element-web#23819.
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

thanks!

@richvdh richvdh merged commit f642765 into develop Nov 29, 2022
@richvdh richvdh deleted the rav/get_room_notifs_state_client branch November 29, 2022 10:55
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.

3 participants