mirror of
https://github.com/element-hq/synapse.git
synced 2026-01-11 19:56:31 +00:00
Fix: use correct parameter when calling get_local_current_membership_for_user_in_room (#19353)
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
parent
cbc5469113
commit
8ff1960878
2 changed files with 2 additions and 1 deletions
1
changelog.d/19353.bugfix
Normal file
1
changelog.d/19353.bugfix
Normal file
|
|
@ -0,0 +1 @@
|
|||
Fix a bug introduced in 1.61.0 where a user's membership in a room was accidentally ignored when considering access to historical state events in rooms with the "shared" history visibility. Contributed by Lukas Tautz.
|
||||
|
|
@ -322,7 +322,7 @@ class MessageHandler:
|
|||
current_membership,
|
||||
_,
|
||||
) = await self.store.get_local_current_membership_for_user_in_room(
|
||||
user_id, event_id
|
||||
user_id, room_id
|
||||
)
|
||||
return current_membership == Membership.JOIN
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue