diff options
author | Erik Johnston <erik@matrix.org> | 2019-12-20 10:32:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-20 10:32:02 +0000 |
commit | fa780e9721c940479a72eed9877ccad4fef78160 (patch) | |
tree | 2953c373ed13a1b72d4bb3a827db280c2087870c /synapse/handlers/room_member.py | |
parent | Explode on duplicate delta file names. (#6565) (diff) | |
download | synapse-fa780e9721c940479a72eed9877ccad4fef78160.tar.xz |
Change EventContext to use the Storage class (#6564)
Diffstat (limited to 'synapse/handlers/room_member.py')
-rw-r--r-- | synapse/handlers/room_member.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py index 7b7270fc61..44c5e3239c 100644 --- a/synapse/handlers/room_member.py +++ b/synapse/handlers/room_member.py @@ -193,7 +193,7 @@ class RoomMemberHandler(object): requester, event, context, extra_users=[target], ratelimit=ratelimit ) - prev_state_ids = yield context.get_prev_state_ids(self.store) + prev_state_ids = yield context.get_prev_state_ids() prev_member_event_id = prev_state_ids.get((EventTypes.Member, user_id), None) @@ -601,7 +601,7 @@ class RoomMemberHandler(object): if prev_event is not None: return - prev_state_ids = yield context.get_prev_state_ids(self.store) + prev_state_ids = yield context.get_prev_state_ids() if event.membership == Membership.JOIN: if requester.is_guest: guest_can_join = yield self._can_guest_join(prev_state_ids) |