mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-22 01:04:06 -04:00
Fix auth checks to all use the given old_event_state
This commit is contained in:
parent
4a5e95511e
commit
96c001e668
4 changed files with 53 additions and 33 deletions
|
@ -188,11 +188,15 @@ class StateHandler(object):
|
|||
consumeErrors=True
|
||||
)
|
||||
|
||||
max_power = max([int(p) for p in new_powers])
|
||||
new_powers = [
|
||||
int(p) if p else 0 for p in new_powers
|
||||
]
|
||||
|
||||
max_power = max(new_powers)
|
||||
|
||||
curr_events = [
|
||||
z[0] for z in zip(curr_events, new_powers)
|
||||
if int(z[1]) == max_power
|
||||
if z[1] == max_power
|
||||
]
|
||||
|
||||
if not curr_events:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue