summary refs log tree commit diff
path: root/synapse/handlers/devicemessage.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Support MSC3814: Dehydrated Devices Part 2 (#16010)Shay2023-08-081-13/+0
|
* Support MSC3814: Dehydrated Devices (#15929)Shay2023-07-241-2/+106
| | | | | | Signed-off-by: Nicolas Werner <n.werner@famedly.com> Co-authored-by: Nicolas Werner <n.werner@famedly.com> Co-authored-by: Nicolas Werner <89468146+nico-famedly@users.noreply.github.com> Co-authored-by: Hubert Chathi <hubert@uhoreg.ca>
* Remove legacy code of single user device resync api (#15418)Alok Kumar Singh2023-04-211-6/+8
| | | | | * Removed single-user resync usage and updated it to use multi-user counterpart Signed-off-by: Alok Kumar Singh alokaks601@gmail.com
* Batch up replication requests to request the resyncing of remote users's ↵reivilibre2023-01-101-1/+1
| | | | devices. (#14716)
* Improve logging and opentracing for to-device message handling (#14598)Richard van der Hoff2022-12-061-14/+22
| | | | | | | A batch of changes intended to make it easier to trace to-device messages through the system. The intention here is that a client can set a property org.matrix.msgid in any to-device message it sends. That ID is then included in any tracing or logging related to the message. (Suggestions as to where this field should be documented welcome. I'm not enthusiastic about speccing it - it's very much an optional extra to help with debugging.) I've also generally improved the data we send to opentracing for these messages.
* Additional constants for EDU types. (#12884)Patrick Cloke2022-05-271-3/+3
| | | Instead of hard-coding strings in many places.
* Add `StreamKeyType` class and replace string literals with constants (#12567)Andrew Morgan2022-05-161-3/+3
|
* 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
* Clarifications and small fixes to to-device related code (#11247)Andrew Morgan2021-11-091-4/+27
| | | Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
* Use direct references for some configuration variables (#10798)Patrick Cloke2021-09-131-2/+2
| | | | Instead of proxying through the magic getter of the RootConfig object. This should be more performant (and is more explicit).
* Use inline type hints in `handlers/` and `rest/`. (#10382)Jonathan de Jong2021-07-161-1/+1
|
* Fix `m.room_key_request` to-device messages (#9961)Richard van der Hoff2021-05-111-6/+27
| | | fixes #9960
* 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>`
* Improve tracing for to device messages (#9686)Erik Johnston2021-04-011-15/+20
|
* Make RateLimiter class check for ratelimit overrides (#9711)Erik Johnston2021-03-301-2/+3
| | | | | | | This should fix a class of bug where we forget to check if e.g. the appservice shouldn't be ratelimited. We also check the `ratelimit_override` table to check if the user has ratelimiting disabled. That table is really only meant to override the event sender ratelimiting, so we don't use any values from it (as they might not make sense for different rate limits), but we do infer that if ratelimiting is disabled for the user we should disabled all ratelimits. Fixes #9663
* Import HomeServer from the proper module. (#9665)Patrick Cloke2021-03-231-1/+1
|
* Ratelimit cross-user key sharing requests. (#8957)Patrick Cloke2021-02-191-2/+22
|
* Update black, and run auto formatting over the codebase (#9381)Eric Eastwood2021-02-161-3/+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
* Ensure the user ID is serialized in the payload instead of used as an ↵Patrick Cloke2021-01-181-1/+1
| | | | instance name. (#9130)
* Allow running sendToDevice on workers (#9044)Erik Johnston2021-01-071-8/+23
|
* Ensure that remote users' device list resyncing always happens on master (#9043)Erik Johnston2021-01-071-4/+13
| | | Currently `DeviceMessageHandler` only ever exists on master, but that is about to change.
* Add type hints to some handlers (#8505)Patrick Cloke2020-10-091-8/+17
|
* Stop sub-classing object (#8249)Patrick Cloke2020-09-041-1/+1
|
* Use the JSON encoder without whitespace in more places. (#8124)Patrick Cloke2020-08-201-3/+2
|
* Convert the device message and pagination handlers to async/await. (#7678)Patrick Cloke2020-06-161-15/+10
|
* Resync remote device list when detected as stale. (#6786)Erik Johnston2020-01-301-2/+8
|
* Detect unknown remote devices and mark cache as stale (#6776)Erik Johnston2020-01-281-2/+55
| | | | We just mark the fact that the cache may be stale in the database for now.
* Remove usage of deprecated logger.warn method from codebase (#6271)Andrew Morgan2019-10-311-1/+1
| | | Replace every instance of `logger.warn` with `logger.warning` as the former is deprecated.
* Link the send loop with the edus contextsJorik Schellekens2019-09-051-4/+1
| | | | | | The contexts were being filtered too early so the send loop wasn't being linked to them unless the destination was whitelisted.
* Opentrace device lists (#5853)Jorik Schellekens2019-09-031-1/+5
| | | Trace device list changes.
* Propagate opentracing contexts through EDUs (#5852)Jorik Schellekens2019-08-221-6/+21
| | | | | Propagate opentracing contexts through EDUs Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Run Black. (#5482)Amber Brown2019-06-201-4/+3
|
* run isortAmber Brown2018-07-091-2/+1
|
* Split out edu/query registration to a separate classErik Johnston2018-03-131-1/+1
|
* Sanity checking for user idsRichard van der Hoff2018-01-171-3/+11
| | | | | | | | Check the user_id passed to a couple of APIs for validity, to avoid "IndexError: list index out of range" exception which looks scary and results in a 500 rather than a more useful error. Fixes #1432, among other things
* Use new federation_sender DIErik Johnston2016-11-161-2/+2
|
* Add a new method to enqueue the device messages rather than sending a dummy EDUMark Haines2016-09-071-7/+3
|
* Send device messages over federationMark Haines2016-09-061-0/+121