summary refs log tree commit diff
path: root/synapse/push/clientformat.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update intentional mentions (MSC3952) to depend on ↵Patrick Cloke2023-03-021-5/+6
| | | | | | | `exact_event_property_contains` (MSC3966). (#15051) This replaces the specific `is_user_mention` push rule condition used in MSC3952 with the generic `exact_event_property_contains` push rule condition from MSC3966.
* Remove undocumented device from pushrules (#14727)Jeyachandran Rathnam2023-01-091-4/+1
| | | | | | | | | | | * Remove undocumented device from pushrules * Add changelog * Update changelog.d/14727.misc * Rename 14727.misc to 14727.bugfix Co-authored-by: David Robertson <davidr@element.io>
* Send content rules with pattern_type to clients (#14356)DeepBlueV7.X2022-11-151-3/+13
|
* Always send default and rule_id to clients (#13904)Nicolas Werner2022-09-291-4/+2
|
* Port the push rule classes to Rust. (#13768)Erik Johnston2022-09-201-3/+2
|
* Make push rules use proper structures. (#13522)Erik Johnston2022-08-161-30/+38
| | | | | | | | | | | | 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.
* Experimental support for MSC3772 (#12740)Patrick Cloke2022-05-241-0/+4
| | | | | | | | | | 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.
* Add an additional HTTP pusher + push rule tests. (#12188)Nick Mills-Barrett2022-03-111-1/+1
| | | And rename the field used for caching from _id to _cache_key.
* disallow-untyped-defs for synapse.push (#11023)David Robertson2021-10-111-1/+3
|
* Use inline type hints in various other places (in `synapse/`) (#10380)Jonathan de Jong2021-07-151-2/+2
|
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Add type hints to the push module. (#8901)Patrick Cloke2020-12-111-8/+15
|
* Run Black. (#5482)Amber Brown2019-06-201-19/+19
|
* Fix flake8 (#4519)Amber Brown2019-01-301-1/+1
|
* run isortAmber Brown2018-07-091-4/+2
|
* Remove dead code.Mark Haines2016-06-071-26/+0
| | | | | | | | | | | Loading push rules now happens in the datastore, so we can remove the methods that loaded them outside the datastore. The ``waiting_for_join_list`` in federation handler is populated by anything, so can be removed. The ``_get_members_events_txn`` method isn't called from anywhere so can be removed.
* Load push rules in storage layer, so that they get cachedErik Johnston2016-06-031-8/+22
|
* Move the code for formatting push rules into a separate functionMark Haines2016-03-031-0/+112