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

Introduce RoomContext for sharing state between RoomView and children #3260

Merged
merged 3 commits into from
Jul 31, 2019

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Jul 30, 2019

and pull canReact/canReply state up to RoomView to get rid of all the event listeners

Fixes element-hq/element-web#10456

Signed-off-by: Michael Telatynski [email protected]

@t3chguy t3chguy requested a review from a team July 30, 2019 23:48
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.

looks like how contexts work, I think. Thanks for taking a look!

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.

actually it looks like you broke the tests:

TypeError: Cannot read property 'canReact' of undefined

@jryans
Copy link
Collaborator

jryans commented Jul 31, 2019

Since we're treating the issue as a release blocker and hoping to RC today, I'll look at fixing the tests here. Thanks for working on this @t3chguy! 😁

Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Tests are looking good now! 😁

@jryans jryans merged commit fb77802 into develop Jul 31, 2019
@t3chguy t3chguy deleted the t3chguy/hide_msg_action_buttons_on_perms branch May 25, 2020 18:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible EventEmitter memory leak detected. 11 RoomMember.membership listeners added.
3 participants