summary refs log tree commit diff
path: root/synapse/push/baserules.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Port the push rule classes to Rust. (#13768)Erik Johnston2022-09-201-583/+0
|
* Fix breaking event sending due to bad push rule (#13547)Erik Johnston2022-08-171-1/+12
| | | | | | | Broke by #13522 It looks like we have some rules in the DB with a priority class less than 0 that don't override the base rules. Before these were just dropped, but #13522 made that a hard error.
* Make push rules use proper structures. (#13522)Erik Johnston2022-08-161-196/+322
| | | | | | | | | | | | This improves load times for push rules: | Version | Time per user | Time for 1k users | | -------------------- | ------------- | ----------------- | | Before | 138 µs | 138ms | | Now (with custom) | 2.11 µs | 2.11ms | | Now (without custom) | 49.7 ns | 0.05 ms | This therefore has a large impact on send times for rooms with large numbers of local users in the room.
* Update MSC3786 implementation: Check the `state_key` (#12939)Šimon Brandner2022-06-271-1/+7
| | | Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Remove `dont_notify` from the `.m.rule.room.server_acl` rule (#12849)Šimon Brandner2022-05-241-1/+1
| | | | Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
* Experimental support for MSC3772 (#12740)Patrick Cloke2022-05-241-0/+14
| | | | | | | | | | Implements the following behind an experimental configuration flag: * A new push rule kind for mutually related events. * A new default push rule (`.m.rule.thread_reply`) under an unstable prefix. This is missing part of MSC3772: * The `.m.rule.thread_reply_to_me` push rule, this depends on MSC3664 / #11804.
* Implement MSC3786: Add a default push rule to ignore m.room.server_acl ↵Šimon Brandner2022-05-101-0/+15
| | | | | | events (#12601) Fixes vector-im/element-web#20788 Implements matrix-org/matrix-spec-proposals#3786
* Add an additional HTTP pusher + push rule tests. (#12188)Nick Mills-Barrett2022-03-111-19/+19
| | | And rename the field used for caching from _id to _cache_key.
* Upgrade mypy to version 0.931 (#12030)Sean Quah2022-02-181-4/+6
| | | Upgrade mypy to 0.931, mypy-zope to 0.3.5 and fix new complaints.
* Revert experimental push rules from #7997. (#11884)Patrick Cloke2022-02-021-212/+7
| | | Manually reverts the merge from cdbb8e6d6e36e0b6bc36e676d8fe66c96986b399.
* Add type hints to the push module. (#8901)Patrick Cloke2020-12-111-5/+18
|
* Add base pushrule to notify for jitsi conferences (#8286)David Baker2020-11-021-0/+24
| | | This could be customised to trigger a different kind of notification in the future, but for now it's a normal non-highlight one.
* Fix typos and spelling errors. (#8639)Patrick Cloke2020-10-231-1/+1
|
* Incorporate reviewBrendan Abolivier2020-08-061-16/+4
|
* LintBrendan Abolivier2020-07-301-19/+32
|
* Implement new experimental push rules with a database hack to enable themBrendan Abolivier2020-07-281-9/+208
|
* Explicitly check that tombstone is a state event before notifying.Erik Johnston2019-07-311-1/+7
|
* Add default push rule to ignore reactions (#5623)J. Ryan Stinnett2019-07-051-0/+13
| | | | | | | This adds a default push rule following the proposal in [MSC2153](https://github.com/matrix-org/matrix-doc/pull/2153). See also https://github.com/vector-im/riot-web/issues/10208 See also https://github.com/matrix-org/matrix-js-sdk/pull/976
* Run Black. (#5482)Amber Brown2019-06-201-234/+170
|
* Add a default .m.rule.tombstone push rule (#4867)Travis Ralston2019-04-291-0/+17
| | | | | | | | | | * Add a default .m.rule.tombstone push rule In support of MSC1930: https://github.com/matrix-org/matrix-doc/pull/1930 * changelog * Appease the changelog linter
* run isortAmber Brown2018-07-091-1/+2
|
* Consistently use six's iteritems and wrap lazy keys/values in list() if ↵Amber Brown2018-05-311-1/+1
| | | | they're not meant to be lazy (#3307)
* Omit the *s for @room notificationsDavid Baker2017-10-161-1/+1
| | | | They're just redundant
* Use notification levels in power_levelsDavid Baker2017-10-101-2/+2
| | | | | | Rather than making the condition directly require a specific power level. This way the level require to notify a room can be configured per room.
* They're called roomsDavid Baker2017-10-051-4/+4
|
* Get rule type rightDavid Baker2017-10-051-1/+1
|
* Support for channel notificationsDavid Baker2017-10-051-0/+23
| | | | | Add condition type to check the sender's power level and add a base rule using it for @channel notifications.
* _id field must uniquely identify different conditionsErik Johnston2016-09-191-2/+2
|
* proposal for notifying on e2e eventsMatthew Hodgson2016-09-171-0/+49
|
* s/underride/override/ in the rule_id tooDavid Baker2016-08-161-1/+1
|
* Move display name ruleDavid Baker2016-08-151-16/+20
| | | | As per https://github.com/matrix-org/matrix-doc/pull/373 and comment
* Fix the rule_id for .m.rule.invite_for_me (#715)Mark Haines2016-04-111-1/+1
|
* Fix invite pushesDavid Baker2016-04-081-35/+37
| | | | | | * If the event is an invite event, add the invitee to list of user we run push rules for (if they have a pusher etc) * Move invite_for_me to be higher prio than member events otherwise member events matches them * Spell override right
* Use google style doc strings.Mark Haines2016-04-011-3/+5
| | | | | | | pycharm supports them so there is no need to use the other format. Might as well convert the existing strings to reduce the risk of people accidentally cargo culting the wrong doc string format.
* Never notify for member events. This fixes ↵David Baker2016-03-241-20/+21
| | | | https://github.com/vector-im/vector-web/issues/828
* Add support for changing the actions for default rulesMark Haines2016-02-261-7/+50
| | | | | | See matrix-org/matrix-doc#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``
* Only notify for messages in one to one rooms, not every eventDavid Baker2016-01-261-0/+6
| | | | Fixes the fact that candidate events and hangups generated notifications.
* Remove member event rule as per SYN-607David Baker2016-01-211-17/+19
|
* Merge branch 'develop' of github.com:matrix-org/synapse into default_notifyErik Johnston2016-01-191-190/+198
|\
| * Update _idErik Johnston2016-01-191-2/+3
| |
| * Do for loop once at startErik Johnston2016-01-181-8/+17
| |
| * Use static for const dictsErik Johnston2016-01-181-183/+181
| |
| * Rename 'user_name' to 'user_id' in push to make it consistent with the rest ↵Mark Haines2016-01-131-6/+6
| | | | | | | | of the code
* | Change default pushrules back to notifying for all messages.David Baker2016-01-131-1/+0
|/
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Change the m.room.message rule to be disabled by default so we only notify ↵David Baker2015-12-021-0/+1
| | | | for 1:1 rooms / highlights out-of-the-box
* Oops: underride rule had an identifier with override in it.David Baker2015-06-231-1/+1
|
* Make one-to-one rule an underride otherwise bings don't work in one-to-one ↵David Baker2015-04-241-21/+21
| | | | wrooms. Likewise a couple of other rules.
* Copyright noticesMark Haines2015-04-241-0/+14
|
* 'false' is not FalseDavid Baker2015-03-111-5/+5
|
* PEP8 blank linesDavid Baker2015-03-111-0/+1
|
* Add the master push rule for the break-my-push button. Allow server default ↵David Baker2015-03-101-9/+49
| | | | rules to be disabled by default.
* D'oh: underscore, not hyphenDavid Baker2015-03-091-1/+1
|
* Call notifications should be override else they'll get clobbered by ↵David Baker2015-03-061-21/+21
| | | | sender/room rules.
* Specify when we don't want to highlightDavid Baker2015-03-061-2/+17
|
* Remove the fallback rule - we probably don't want to be notifying for ↵David Baker2015-03-061-9/+1
| | | | everything even if we don't know what it is.
* Add more server default rules so we have default rules for whether you get ↵David Baker2015-03-061-2/+72
| | | | notifs for invites / random member events
* Suppress notices should trump content/room/sender rules.David Baker2015-03-061-13/+13
|
* Add the highlight tweak where messages should be highlighted a different ↵David Baker2015-03-061-0/+4
| | | | colour in appropriate clients.
* Add default rule to suppress notices.David Baker2015-03-041-0/+13
|
* Rename the room-with-two-people rule to be more compatible if we have actual ↵David Baker2015-03-021-1/+1
| | | | one to one rooms.
* SYN-267 Add a fallback rule as an explicit server default rule and make the ↵David Baker2015-02-261-0/+15
| | | | default dont-notify so you effectively have a "notify for everything else" switch you can turn on and off.
* Add API for getting/setting enabled-ness of push rules.David Baker2015-02-261-4/+4
|
* Add enable/disable overlay for push rules (REST API not yet hooked up)David Baker2015-02-251-0/+3
|
* Code-style fixesMark Haines2015-02-101-5/+6
|
* Fix server default rule injection (downwards, not upwards!)David Baker2015-02-091-6/+6
|
* Give server default rules the 'default' attribute and fix various brokenness.David Baker2015-02-051-0/+1
|
* Server default rules now of all kinds rather than all being at lowest prio.David Baker2015-02-051-8/+54
|
* Use set_tweak instead of set_soundDavid Baker2015-02-031-1/+2
|
* Spit out server default rules too.David Baker2015-01-301-6/+5
|
* Add room member count condition and default rule to make a noise on rooms of ↵David Baker2015-01-301-0/+14
| | | | only 2 people.
* Add default push rules including setting a sound for messages mentioning ↵David Baker2015-01-291-0/+35
your username / display name