mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 10:36:06 -04:00
Fix adding push rules relative to other rules
This commit is contained in:
parent
7179fdd550
commit
8c94833b72
2 changed files with 12 additions and 6 deletions
|
@ -130,7 +130,8 @@ class PushRuleStore(SQLBaseStore):
|
|||
|
||||
def _add_push_rule_relative_txn(self, txn, user_id, **kwargs):
|
||||
after = kwargs.pop("after", None)
|
||||
relative_to_rule = kwargs.pop("before", after)
|
||||
before = kwargs.pop("before", None)
|
||||
relative_to_rule = before or after
|
||||
|
||||
res = self._simple_select_one_txn(
|
||||
txn,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue