When replacing disabled rule, disable new rule too
This commit is contained in:
parent
ef1f6edf31
commit
8b53b4ae11
|
@ -1858,6 +1858,8 @@ class MatrixClient(nio.AsyncClient):
|
||||||
|
|
||||||
if enable is not None and (old.enabled if old else True) != enable:
|
if enable is not None and (old.enabled if old else True) != enable:
|
||||||
await self.enable_pushrule("global", kind, rule_id, enable)
|
await self.enable_pushrule("global", kind, rule_id, enable)
|
||||||
|
elif kind_change or rule_id_change and not old.enabled:
|
||||||
|
await self.enable_pushrule("global", kind, rule_id, False)
|
||||||
|
|
||||||
|
|
||||||
async def tweak_pushrule_actions(
|
async def tweak_pushrule_actions(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user