diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2020-06-10 14:24:01 +0100 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2020-06-10 14:24:01 +0100 |
commit | 6f6a4bfc079c51f130630237cf86488179bae63e (patch) | |
tree | 546bfd72b75370214b96112d70e53ae504a6c0a3 /synapse/rest/client/v1/push_rule.py | |
parent | Merge branch 'develop' into babolivier/mark_unread (diff) | |
download | synapse-6f6a4bfc079c51f130630237cf86488179bae63e.tar.xz |
Rename dont_push into mark_unread
Diffstat (limited to 'synapse/rest/client/v1/push_rule.py')
-rw-r--r-- | synapse/rest/client/v1/push_rule.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v1/push_rule.py b/synapse/rest/client/v1/push_rule.py index 9fd4908136..c27e05d1dc 100644 --- a/synapse/rest/client/v1/push_rule.py +++ b/synapse/rest/client/v1/push_rule.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright 2014-2016 OpenMarket Ltd +# Copyright 2014-2020 The Matrix.org Foundation C.I.C. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -267,7 +267,7 @@ def _check_actions(actions): raise InvalidRuleException("No actions found") for a in actions: - if a in ["notify", "dont_notify", "coalesce"]: + if a in ["notify", "dont_notify", "coalesce", "mark_unread"]: pass elif isinstance(a, dict) and "set_tweak" in a: pass |