Skip to content
Snippets Groups Projects
Commit ae8ff92e authored by Kegan Dougal's avatar Kegan Dougal
Browse files

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.
parent 65fd446b
No related branches found
No related tags found
No related merge requests found
......@@ -486,7 +486,7 @@ class Auth(object):
send_level = send_level_event.content.get("events", {}).get(
event.type
)
if not send_level:
if send_level is None:
if hasattr(event, "state_key"):
send_level = send_level_event.content.get(
"state_default", 50
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment