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

Add support for changing the actions for default rules #609

Merged
merged 1 commit into from
Feb 26, 2016

Conversation

NegativeMjark
Copy link
Contributor

See matrix-org/matrix-spec-proposals#283

Works by adding dummy rules to the push rules table with a negative priority class and then using those rules to clobber the default rule actions when adding the default rules in list_with_base_rules

@dbkr
Copy link
Member

dbkr commented Feb 26, 2016

Yep, as you say IRL, may want to strip out any remaining rules with prio class -1 or otherwise handle this, although of course it's perfectly safe until we remove a default rule! Probably should do the check now though rather than leaving a heffalump trap for someone. Otherwise lgtm.

@dbkr dbkr assigned NegativeMjark and unassigned dbkr Feb 26, 2016
@NegativeMjark
Copy link
Contributor Author

I've removed all the rules with negative prio class, b3fb790

@dbkr
Copy link
Member

dbkr commented Feb 26, 2016

lgtm, merge it! :)

See matrix-org/matrix-spec-proposals#283

Works by adding dummy rules to the push rules table with a negative priority class and then using those rules to clobber the default rule actions when adding the default rules in ``list_with_base_rules``
NegativeMjark added a commit that referenced this pull request Feb 26, 2016
Add support for changing the actions for default rules

See matrix-org/matrix-spec-proposals#283

Works by adding dummy rules to the push rules table with a negative priority class and then using those rules to clobber the default rule actions when adding the default rules in ``list_with_base_rules``
@NegativeMjark NegativeMjark merged commit 4bf13a8 into develop Feb 26, 2016
@richvdh richvdh deleted the markjh/change_action branch December 1, 2016 14:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants