Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fill in the 'default' field for user-defined push rules (#6639)
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Linderhed <[email protected]>
  • Loading branch information
Karlinde authored Mar 31, 2020
1 parent b994e86 commit fe1580b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/6639.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix missing field `default` when fetching user-defined push rules.
1 change: 1 addition & 0 deletions synapse/storage/data_stores/main/push_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def _load_rules(rawrules, enabled_map):
rule = dict(rawrule)
rule["conditions"] = json.loads(rawrule["conditions"])
rule["actions"] = json.loads(rawrule["actions"])
rule["default"] = False
ruleslist.append(rule)

# We're going to be mutating this a lot, so do a deep copy
Expand Down

0 comments on commit fe1580b

Please sign in to comment.