summary refs log tree commit diff
path: root/synapse/push/baserules.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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