mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-04 21:58:54 +01:00
Fix a bug which causes a send event level of 0 to not be honoured.
Caused by a bad if check, which incorrectly executes for both 0 and None, when None was the original intent.
This commit is contained in:
parent
65fd446b4d
commit
ae8ff92e05
1 changed files with 1 additions and 1 deletions
|
@ -486,7 +486,7 @@ class Auth(object):
|
||||||
send_level = send_level_event.content.get("events", {}).get(
|
send_level = send_level_event.content.get("events", {}).get(
|
||||||
event.type
|
event.type
|
||||||
)
|
)
|
||||||
if not send_level:
|
if send_level is None:
|
||||||
if hasattr(event, "state_key"):
|
if hasattr(event, "state_key"):
|
||||||
send_level = send_level_event.content.get(
|
send_level = send_level_event.content.get(
|
||||||
"state_default", 50
|
"state_default", 50
|
||||||
|
|
Loading…
Reference in a new issue