mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Don't crash if a user has no push rule enabled entries
This commit is contained in:
parent
52bdd1b834
commit
7065b75bfd
@ -50,6 +50,9 @@ def _get_rules(room_id, user_ids, store):
|
||||
# fetch disabled rules, but this won't account for any server default
|
||||
# rules the user has disabled, so we need to do this too.
|
||||
for uid in user_ids:
|
||||
if uid not in rules_enabled_by_user:
|
||||
continue
|
||||
|
||||
user_enabled_map = rules_enabled_by_user[uid]
|
||||
|
||||
for rule in rules_by_user[uid]:
|
||||
|
Loading…
Reference in New Issue
Block a user