summary refs log tree commit diff
path: root/tests/handlers/test_sync.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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 a Synapse Module for configuring presence update routing (#9491)Andrew Morgan2021-04-061-10/+11
| | | | | | | | | | | | At the moment, if you'd like to share presence between local or remote users, those users must be sharing a room together. This isn't always the most convenient or useful situation though. This PR adds a module to Synapse that will allow deployments to set up extra logic on where presence updates should be routed. The module must implement two methods, `get_users_for_states` and `get_interested_users`. These methods are given presence updates or user IDs and must return information that Synapse will use to grant passing presence updates around. A method is additionally added to `ModuleApi` which allows triggering a set of users to receive the current, online presence information for all users they are considered interested in. This is the equivalent of that user receiving presence information during an initial sync. The goal of this module is to be fairly generic and useful for a variety of applications, with hard requirements being: * Sending state for a specific set or all known users to a defined set of local and remote users. * The ability to trigger an initial sync for specific users, so they receive all current state.
* Add admin API for logging in as a user (#8617)Erik Johnston2020-11-171-4/+10
|
* Stop Auth methods from polling the config on every req. (#7420)Andrew Morgan2020-05-061-5/+8
|
* Add `local_current_membership` table (#6655)Erik Johnston2020-01-151-2/+2
| | | | | | | Currently we rely on `current_state_events` to figure out what rooms a user was in and their last membership event in there. However, if the server leaves the room then the table may be cleaned up and that information is lost. So lets add a table that separately holds that information.
* Port SyncHandler to async/awaitErik Johnston2019-12-051-17/+16
|
* rename error codeNeil Johnson2018-08-181-2/+2
|
* add new error type ResourceLimitNeil Johnson2018-08-161-3/+3
|
* update error codesNeil Johnson2018-08-151-2/+2
|
* fix setup_test_homeserver to be postgres compatibleNeil Johnson2018-08-141-1/+1
|
* fix importsNeil Johnson2018-08-091-1/+1
|
* only block on sync where user is not part of the mau cohortNeil Johnson2018-08-091-9/+31
|
* block sync if auth checks failNeil Johnson2018-08-091-6/+13
|
* sync auth blockingNeil Johnson2018-08-081-0/+42