mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-22 03:54:59 -05:00
Oops, remove unintentional change
This commit is contained in:
parent
a2dfab12c5
commit
86e865d7d2
@ -134,13 +134,6 @@ def filter_events_for_clients(store, user_tuples, events, event_id_to_state):
|
|||||||
if prev_membership not in MEMBERSHIP_PRIORITY:
|
if prev_membership not in MEMBERSHIP_PRIORITY:
|
||||||
prev_membership = "leave"
|
prev_membership = "leave"
|
||||||
|
|
||||||
# Always allow the user to see their own leave events, otherwise
|
|
||||||
# they won't see the room disappear if they reject the invite
|
|
||||||
if membership == "leave" and (
|
|
||||||
prev_membership == "join" or prev_membership == "invite"
|
|
||||||
):
|
|
||||||
return True
|
|
||||||
|
|
||||||
new_priority = MEMBERSHIP_PRIORITY.index(membership)
|
new_priority = MEMBERSHIP_PRIORITY.index(membership)
|
||||||
old_priority = MEMBERSHIP_PRIORITY.index(prev_membership)
|
old_priority = MEMBERSHIP_PRIORITY.index(prev_membership)
|
||||||
if old_priority < new_priority:
|
if old_priority < new_priority:
|
||||||
|
Loading…
Reference in New Issue
Block a user