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:
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user