summary refs log tree commit diff
path: root/synapse/handlers/read_marker.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Do not refuse to set read_marker if previous event_id is in wrong room (#16990)SpiritCroc2024-03-211-2/+2
|
* Correctly mention previous copyright (#16820)Erik Johnston2024-01-231-0/+1
| | | | | During the migration the automated script to update the copyright headers accidentally got rid of some of the existing copyright lines. Reinstate them.
* Update license headersPatrick Cloke2023-11-211-10/+16
|
* Remove some unused `server_name` fields (#15723)Sean Quah2023-06-061-1/+0
| | | Signed-off-by: Sean Quah <seanq@matrix.org>
* Handle missing previous read marker event. (#15464)Nick Mills-Barrett2023-05-181-4/+14
| | | | | If the previous read marker is pointing to an event that no longer exists (e.g. due to retention) then assume that the newly given read marker is newer.
* Use account data constants in more places. (#15554)Patrick Cloke2023-05-091-2/+3
|
* Refactor and convert `Linearizer` to async (#12357)Sean Quah2022-04-051-1/+1
| | | | | | | | | | | Refactor and convert `Linearizer` to async. This makes a `Linearizer` cancellation bug easier to fix. Also refactor to use an async context manager, which eliminates an unlikely footgun where code that doesn't immediately use the context manager could forget to release the lock. Signed-off-by: Sean Quah <seanq@element.io>
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-1/+1
| | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733
* Remove the deprecated BaseHandler. (#11005)Patrick Cloke2021-10-081-4/+1
| | | | | | | | 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.
* Use direct references for some configuration variables (#10798)Patrick Cloke2021-09-131-1/+1
| | | | Instead of proxying through the magic getter of the RootConfig object. This should be more performant (and is more explicit).
* 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>`
* Import HomeServer from the proper module. (#9665)Patrick Cloke2021-03-231-1/+1
|
* Allow moving account data and receipts streams off master (#9104)Erik Johnston2021-01-181-3/+2
|
* Add type hints to some handlers (#8505)Patrick Cloke2020-10-091-2/+8
|
* Simplify super() calls to Python 3 syntax. (#8344)Patrick Cloke2020-09-181-1/+1
| | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py
* Port receipt and read markers to async/waitErik Johnston2019-10-291-8/+5
|
* Run Black. (#5482)Amber Brown2019-06-201-6/+3
|
* Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678)Amber Brown2018-08-101-1/+1
|
* run isortAmber Brown2018-07-091-2/+3
|
* Improve caching for read_marker APIErik Johnston2018-03-011-3/+3
| | | | | | We add a new storage function to get a paritcular type of room account data. This allows us to prefill the cache when updating that acount data.
* m.read_marker -> m.fully_read (#2128)Luke Barnard2017-04-181-4/+4
| | | | | | Also: - change the REST endpoint to have a "S" on the end (so it's now /read_markers) - change the content of the m.read_up_to event to have the key "event_id" instead of "marker".
* Simplify is_event_after logicLuke Barnard2017-04-121-2/+3
|
* Only notify user, not entire roomLuke Barnard2017-04-121-3/+1
|
* Remove comment, simplify null-guardLuke Barnard2017-04-121-4/+1
|
* Handle no previous RMLuke Barnard2017-04-121-1/+4
|
* flake8Luke Barnard2017-04-111-1/+0
|
* Refactor event ordering check to events storeLuke Barnard2017-04-111-28/+4
|
* CopyrightLuke Barnard2017-04-111-1/+1
|
* flake8Luke Barnard2017-04-111-2/+1
|
* Finish implementing RM endpointLuke Barnard2017-04-111-39/+48
| | | | | - This change causes a 405 to be sent if "m.read_marker" is set via /account_data - This also fixes-up the RM endpoint so that it actually Works.
* Initial commit of RM server-side impllukebarnard2017-04-111-0/+82
(See https://docs.google.com/document/d/1UWqdS-e1sdwkLDUY0wA4gZyIkRp-ekjsLZ8k6g_Zvso/edit#heading=h.lndohpg8at5u)