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

Move RoomMemberHandler out of Handlers #2926

Merged
merged 2 commits into from Mar 1, 2018

Conversation

erikjohnston
Copy link
Member

This will allows us to create it on workers.

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm, though I'm not sure i'd pull is_mine and is_mine_id into the handler.

@@ -286,7 +294,7 @@ def _update_membership(

if not is_host_in_room:
inviter = yield self.get_inviter(target.to_string(), room_id)
if inviter and not self.hs.is_mine(inviter):
if inviter and not self.is_mine(inviter):
Copy link
Member

Choose a reason for hiding this comment

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

is there a reason to change this?

Copy link
Member Author

Choose a reason for hiding this comment

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

TBH I was mostly using it so that I could track down all the various places we were doing annoying hs.get_*() calls. Am happy to put them back

@richvdh richvdh assigned erikjohnston and unassigned richvdh Mar 1, 2018
@erikjohnston erikjohnston merged commit 483e810 into develop Mar 1, 2018
@erikjohnston erikjohnston deleted the erikj/member_handler_move branch March 5, 2018 15:56
ara4n added a commit that referenced this pull request Mar 13, 2018
ara4n added a commit that referenced this pull request Mar 13, 2018
…state_key is None) (#2990)

Fixes a regression that had crept in where the caching layer upholds requests for loading state which is filtered by type (but not by state_key), but the DB layer itself would interpret a missing state_key as a request to filter by null state_key rather than returning all state_keys.
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.

None yet

2 participants