Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Accept & store thread IDs for receipts (implement MSC3771). (#13782) | Patrick Cloke | 2022-09-23 | 1 | -2/+21 |
| | | | | Updates the `/receipts` endpoint and receipt EDU handler to parse a `thread_id` from the body and insert it in the database. | ||||
* | Faster Remote Room Joins: tell remote homeservers that we are unable to ↵ | reivilibre | 2022-09-23 | 1 | -1/+1 |
| | | | | authorise them if they query a room which has partial state on our server. (#13823) | ||||
* | Remove support for unstable private read receipts (#13653) | Šimon Brandner | 2022-09-01 | 1 | -23/+6 |
| | | | Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> | ||||
* | Support stable identifiers for MSC2285: private read receipts. (#13273) | Šimon Brandner | 2022-08-05 | 1 | -10/+26 |
| | | | | | This adds support for the stable identifiers of MSC2285 while continuing to support the unstable identifiers behind the configuration flag. These will be removed in a future version. | ||||
* | Additional constants for EDU types. (#12884) | Patrick Cloke | 2022-05-27 | 1 | -3/+3 |
| | | | Instead of hard-coding strings in many places. | ||||
* | Add `StreamKeyType` class and replace string literals with constants (#12567) | Andrew Morgan | 2022-05-16 | 1 | -2/+10 |
| | |||||
* | Avoid unnecessary copies when filtering private read receipts. (#12711) | Šimon Brandner | 2022-05-16 | 1 | -33/+61 |
| | | | | | | A minor optimization to avoid unnecessary copying/building identical dictionaries when filtering private read receipts. Also clarifies comments and cleans-up some tests. | ||||
* | Use `private` instead of `hidden` in MSC2285 related code. (#12635) | Šimon Brandner | 2022-05-05 | 1 | -3/+3 |
| | |||||
* | Implement changes to MSC2285 (hidden read receipts) (#12168) | Šimon Brandner | 2022-05-04 | 1 | -38/+27 |
| | | | | | * Changes hidden read receipts to be a separate receipt type (instead of a field on `m.read`). * Updates the `/receipts` endpoint to accept `m.fully_read`. | ||||
* | Bound ephemeral events by key (#12544) | Nick Mills-Barrett | 2022-04-26 | 1 | -2/+2 |
| | | | | Co-authored-by: Brad Murray <bradtgmurray@gmail.com> Co-authored-by: Andrew Morgan <andrewm@element.io> | ||||
* | Rename various ApplicationServices interested methods (#11915) | Andrew Morgan | 2022-03-03 | 1 | -1/+1 |
| | |||||
* | Remove `HomeServer.get_datastore()` (#12031) | Richard van der Hoff | 2022-02-23 | 1 | -2/+2 |
| | | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733 | ||||
* | Add a constant for receipt types (m.read). (#11531) | Patrick Cloke | 2021-12-08 | 1 | -3/+3 |
| | | | And expand some type hints in the receipts storage module. | ||||
* | Improve docstrings for methods related to sending EDUs to application ↵ | Andrew Morgan | 2021-10-21 | 1 | -1/+7 |
| | | | | services (#11138) | ||||
* | Remove the deprecated BaseHandler. (#11005) | Patrick Cloke | 2021-10-08 | 1 | -4/+2 |
| | | | | | | | | The shared ratelimit function was replaced with a dedicated RequestRatelimiter class (accessible from the HomeServer object). Other properties were copied to each sub-class that inherited from BaseHandler. | ||||
* | Remove unnecessary parentheses around tuples returned from methods (#10889) | Andrew Morgan | 2021-09-23 | 1 | -2/+2 |
| | |||||
* | Add type hints for event streams. (#10856) | Patrick Cloke | 2021-09-21 | 1 | -3/+10 |
| | |||||
* | Require type hints in the handlers module. (#10831) | Patrick Cloke | 2021-09-20 | 1 | -2/+2 |
| | | | | | | | Adds missing type hints to methods in the synapse.handlers module and requires all methods to have type hints there. This also removes the unused construct_auth_difference method from the FederationHandler. | ||||
* | Use direct references for some configuration variables (#10798) | Patrick Cloke | 2021-09-13 | 1 | -1/+1 |
| | | | | Instead of proxying through the magic getter of the RootConfig object. This should be more performant (and is more explicit). | ||||
* | Handle string read receipt data (#10606) | Šimon Brandner | 2021-08-16 | 1 | -1/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle string read receipt data Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Test that we handle string read receipt data Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Add changelog for #10606 Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Add docs Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Ignore malformed RRs Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Only surround hidden = ... Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Remove unnecessary argument Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com> * Update changelog.d/10606.bugfix Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | ||||
* | Include room ID in ignored EDU log messages (#10507) | Dagfinn Ilmari Mannsåker | 2021-08-03 | 1 | -1/+2 |
| | | | | Signed-off-by: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> | ||||
* | Support for MSC2285 (hidden read receipts) (#10413) | Šimon Brandner | 2021-07-28 | 1 | -5/+53 |
| | | | Implementation of matrix-org/matrix-doc#2285 | ||||
* | Use inline type hints in `handlers/` and `rest/`. (#10382) | Jonathan de Jong | 2021-07-16 | 1 | -2/+2 |
| | |||||
* | Ignore EDUs for rooms we're not in (#10317) | Dagfinn Ilmari Mannsåker | 2021-07-06 | 1 | -0/+15 |
| | |||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -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>` | ||||
* | Import HomeServer from the proper module. (#9665) | Patrick Cloke | 2021-03-23 | 1 | -1/+1 |
| | |||||
* | Update black, and run auto formatting over the codebase (#9381) | Eric Eastwood | 2021-02-16 | 1 | -5/+4 |
| | | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version | ||||
* | Allow moving account data and receipts streams off master (#9104) | Erik Johnston | 2021-01-18 | 1 | -5/+22 |
| | |||||
* | Add type hints to the receipts and user directory handlers. (#8976) | Patrick Cloke | 2021-01-04 | 1 | -11/+19 |
| | |||||
* | Allow spam-checker modules to be provide async methods. (#8890) | David Teller | 2020-12-11 | 1 | -5/+2 |
| | | | | Spam checker modules can now provide async methods. This is implemented in a backwards-compatible manner. | ||||
* | Improve appservice handler to send only the most recent read receipts when ↵ | Will Hunt | 2020-11-18 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | no stream_id is stored. (#8744) * Make this line debug (it's noisy) * Don't include from_key for presence if we are at 0 * Limit read receipts for all rooms to 100 * changelog.d/8744.bugfix * Allow from_key to be None * Update 8744.bugfix * The from_key is superflous * Update comment | ||||
* | Send some ephemeral events to appservices (#8437) | Will Hunt | 2020-10-15 | 1 | -1/+34 |
| | | | Optionally sends typing, presence, and read receipt information to appservices. | ||||
* | Simplify super() calls to Python 3 syntax. (#8344) | Patrick Cloke | 2020-09-18 | 1 | -1/+1 |
| | | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py | ||||
* | Clean up types for PaginationConfig (#8250) | Erik Johnston | 2020-09-08 | 1 | -15/+0 |
| | | | This removes `SourcePaginationConfig` and `get_pagination_rows`. The reasoning behind this is that these generic classes/functions erased the types of the IDs it used (i.e. instead of passing around `StreamToken` it'd pass in e.g. `token.room_key`, which don't have uniform types). | ||||
* | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 1 | -1/+1 |
| | |||||
* | Convert _base, profile, and _receipts handlers to async/await (#7860) | Patrick Cloke | 2020-07-17 | 1 | -10/+6 |
| | |||||
* | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) | Patrick Cloke | 2020-02-21 | 1 | -1/+1 |
| | | | | Ensure good comprehension hygiene using flake8-comprehensions. | ||||
* | Port receipt and read markers to async/wait | Erik Johnston | 2019-10-29 | 1 | -25/+12 |
| | |||||
* | Remove unnecessary parentheses around return statements (#5931) | Andrew Morgan | 2019-08-30 | 1 | -1/+1 |
| | | | | | Python will return a tuple whether there are parentheses around the returned values or not. I'm just sick of my editor complaining about this all over the place :) | ||||
* | Merge pull request #5743 from matrix-org/erikj/log_origin_receipts_mismatch | Erik Johnston | 2019-07-24 | 1 | -13/+22 |
|\ | | | | | Log when we receive receipt from a different origin | ||||
| * | Log when we receive receipt from a different origin | Erik Johnston | 2019-07-23 | 1 | -13/+22 |
| | | |||||
* | | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -7/+7 |
|/ | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -18/+8 |
| | |||||
* | Batch up outgoing read-receipts to reduce federation traffic. (#4890) | Richard van der Hoff | 2019-03-20 | 1 | -1/+1 |
| | | | | Rate-limit outgoing read-receipts as per #4730. | ||||
* | Move client receipt processing to federation sender worker. | Richard van der Hoff | 2019-03-13 | 1 | -33/+4 |
| | | | | | This is mostly a prerequisite for #4730, but also fits with the general theme of "move everything off the master that we possibly can". | ||||
* | declare a ReadReceipt class | Richard van der Hoff | 2019-03-13 | 1 | -24/+22 |
| | | | | | I'm going to use this in queues and things, so it'll be useful to give it more of a structure. | ||||
* | Clean up read-receipt handling. | Richard van der Hoff | 2019-03-04 | 1 | -59/+44 |
| | | | | | | | Remove a call to run_as_background_process: there is no need to run this as a background process, because build_and_send_edu does not block. We may as well inline the whole of _push_remotes. | ||||
* | Avoid rebuilding Edu objects in worker mode (#4770) | Richard van der Hoff | 2019-03-04 | 1 | -1/+1 |
| | | | | | In worker mode, on the federation sender, when we receive an edu for sending over the replication socket, it is parsed into an Edu object. There is no point extracting the contents of it so that we can then immediately build another Edu. | ||||
* | Run push_receipts_to_remotes as background job (#4707) | Richard van der Hoff | 2019-02-21 | 1 | -34/+34 |
| | | | I suspect the CPU usage metrics for this are going to /dev/null at the moment. | ||||
* | Remove redundant run_as_background_process() from pusherpool | Richard van der Hoff | 2018-10-22 | 1 | -1/+1 |
| | | | | | | | `on_new_notifications` and `on_new_receipts` in `HttpPusher` and `EmailPusher` now always return synchronously, so we can remove the `defer.gatherResults` on their results, and the `run_as_background_process` wrappers can be removed too because the PusherPool methods will now complete quickly enough. | ||||
* | Fix logcontexts for running pushers | Richard van der Hoff | 2018-08-17 | 1 | -10/+8 |
| | | | | | | | First of all, avoid resetting the logcontext before running the pushers, to fix the "Starting db txn 'get_all_updated_receipts' from sentinel context" warning. Instead, give them their own "background process" logcontexts. | ||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -6/+4 |
| | |||||
* | Improve exception handling for background processes | Richard van der Hoff | 2018-04-27 | 1 | -29/+32 |
| | | | | | | | | | | | | | | | | | | There were a bunch of places where we fire off a process to happen in the background, but don't have any exception handling on it - instead relying on the unhandled error being logged when the relevent deferred gets garbage-collected. This is unsatisfactory for a number of reasons: - logging on garbage collection is best-effort and may happen some time after the error, if at all - it can be hard to figure out where the error actually happened. - it is logged as a scary CRITICAL error which (a) I always forget to grep for and (b) it's not really CRITICAL if a background process we don't care about fails. So this is an attempt to add exception handling to everything we fire off into the background. | ||||
* | Split out edu/query registration to a separate class | Erik Johnston | 2018-03-13 | 1 | -1/+1 |
| | |||||
* | fix a logcontext leak in read receipt handling | Richard van der Hoff | 2017-10-11 | 1 | -0/+4 |
| | |||||
* | Don't recreate so many sets | Erik Johnston | 2017-03-16 | 1 | -3/+2 |
| | |||||
* | Fix ignored read-receipts | Richard van der Hoff | 2016-12-08 | 1 | -1/+5 |
| | | | | | Don't ignore read-receipts which arrive in the same EDU as a read-receipt for an old event. | ||||
* | Use new federation_sender DI | Erik Johnston | 2016-11-16 | 1 | -2/+2 |
| | |||||
* | Clobber EDUs in send queue | Erik Johnston | 2016-09-09 | 1 | -0/+1 |
| | |||||
* | Use state handler instead of get_users_in_room/get_joined_hosts | Erik Johnston | 2016-08-26 | 1 | -1/+4 |
| | |||||
* | Replaces calls to fetch_room_distributions_into with get_joined_hosts_for_room | Mark Haines | 2016-05-16 | 1 | -6/+5 |
| | |||||
* | Add comments on min_stream_id | David Baker | 2016-04-07 | 1 | -0/+1 |
| | | | | saying that the min stream id won't be completely accurate all the time | ||||
* | Send badge count pushes. | David Baker | 2016-04-07 | 1 | -4/+17 |
| | | | | Also fix bugs with retrying. | ||||
* | Add enviroment variable SYNAPSE_CACHE_FACTOR, default it to 0.1 | Erik Johnston | 2016-03-01 | 1 | -2/+0 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Open up /events to anonymous users for room events only | Daniel Wagner-Hall | 2015-11-05 | 1 | -4/+2 |
| | | | | Squash-merge of PR #345 from daniel/anonymousevents | ||||
* | Fix receipts for room initial sync | Erik Johnston | 2015-10-22 | 1 | -7/+1 |
| | |||||
* | Re-enable receipts | Erik Johnston | 2015-08-13 | 1 | -2/+0 |
| | |||||
* | Disable receipts for now | Matrix | 2015-07-22 | 1 | -0/+2 |
| | |||||
* | Don't do any database hits in receipt handling if from_key == to_key | Matrix | 2015-07-18 | 1 | -0/+3 |
| | |||||
* | Docs | Erik Johnston | 2015-07-14 | 1 | -3/+8 |
| | |||||
* | Comments | Erik Johnston | 2015-07-13 | 1 | -4/+12 |
| | |||||
* | Remove spurious comment | Erik Johnston | 2015-07-09 | 1 | -2/+0 |
| | |||||
* | Integer timestamps | Erik Johnston | 2015-07-09 | 1 | -1/+1 |
| | |||||
* | Change format of receipts to allow inclusion of data | Erik Johnston | 2015-07-09 | 1 | -8/+16 |
| | |||||
* | Add a cache to fetching of receipt streams | Erik Johnston | 2015-07-08 | 1 | -24/+7 |
| | |||||
* | Split receipt events up into one per room | Erik Johnston | 2015-07-08 | 1 | -30/+21 |
| | |||||
* | Hook up receipts to v1 initialSync | Erik Johnston | 2015-07-08 | 1 | -1/+44 |
| | |||||
* | Wire together receipts and the notifer/federation | Erik Johnston | 2015-07-07 | 1 | -21/+60 |
| | |||||
* | Fix various typos | Erik Johnston | 2015-07-07 | 1 | -2/+4 |
| | |||||
* | Consolidate duplicate code in notifier | Erik Johnston | 2015-07-02 | 1 | -2/+2 |
| | |||||
* | Add basic ReceiptHandler | Erik Johnston | 2015-07-01 | 1 | -0/+130 |