synapse-old/synapse
Patrick Cloke 1bf143699c
Combine logic about not overriding BUSY presence. (#16170)
Simplify some of the presence code by reducing duplicated code between
worker & non-worker modes.

The main change is to push some of the logic from `user_syncing` into
`set_state`. This is done by passing whether the user is setting the presence
via a `/sync` with a new `is_sync` flag to `set_state`. If this is `true` some
additional logic is performed:

* Don't override `busy` presence.
* Update the `last_user_sync_ts`.
* Never update the status message.
2023-08-28 11:03:23 -04:00
..
_scripts Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
api Add `Retry-After` to M_LIMIT_EXCEEDED error responses (#16136) 2023-08-24 10:40:26 -04:00
app Implements a task scheduler for resumable potentially long running tasks (#15891) 2023-08-21 14:17:13 +02:00
appservice Move support for application service query parameter authorization behind a configuration option (#16017) 2023-08-03 11:43:51 -07:00
config Add configuration setting for CAS protocol version (#15816) 2023-08-24 16:11:23 -04:00
crypto Factor out an `is_mine_server_name` method (#15542) 2023-05-05 15:06:22 +01:00
events Drop backwards compat hack for event serialization (#16069) 2023-08-07 10:37:08 -07:00
federation Send proper JSON POST data to /publicRooms (#16185) 2023-08-25 12:11:40 -04:00
handlers Combine logic about not overriding BUSY presence. (#16170) 2023-08-28 11:03:23 -04:00
http Don't log exceptions for every non-200 response (#15969) 2023-07-20 11:07:58 +01:00
logging Prepare unit tests for Python 3.12 (#16099) 2023-08-25 15:05:10 -04:00
media Make the media `/upload` tracing less ambiguous (#15888) 2023-07-10 17:23:11 -05:00
metrics Quick & dirty metric for background update status (#15740) 2023-06-07 17:12:23 +00:00
module_api Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
push Support room version 11 (#15912) 2023-07-18 08:44:59 -04:00
replication Combine logic about not overriding BUSY presence. (#16170) 2023-08-28 11:03:23 -04:00
res Use oEmbed for YouTube Shorts (#15025) 2023-05-03 12:54:42 -04:00
rest Validate input to POST /key/v2/query endpoint. (#16183) 2023-08-25 14:10:31 -04:00
server_notices Remove unused `room_alias` field from `/createRoom` response (#15093) 2023-02-22 11:07:28 +00:00
spam_checker_api Fix import in module_api module and docs on the new check_event_for_spam signature (#12918) 2022-05-31 12:04:53 +02:00
state Speed up updating state in large rooms (#15971) 2023-07-20 15:51:28 +01:00
static Update link to the clients webpage, fix #15825 (#15874) 2023-07-06 17:28:09 +02:00
storage Stabilize support for MSC3958 (suppress notifications from edits). (#16113) 2023-08-23 13:22:34 -04:00
streams Use mypy 1.0 (#15052) 2023-02-16 16:09:11 +00:00
types Implements a task scheduler for resumable potentially long running tasks (#15891) 2023-08-21 14:17:13 +02:00
util Task scheduler: add replication notify for new task to launch ASAP (#16184) 2023-08-28 14:03:51 +00:00
__init__.py Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
event_auth.py Support room version 11 (#15912) 2023-07-18 08:44:59 -04:00
notifier.py Add ability to wait for locks and add locks to purge history / room deletion (#15791) 2023-07-31 10:58:03 +01:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
server.py Implements a task scheduler for resumable potentially long running tasks (#15891) 2023-08-21 14:17:13 +02:00
visibility.py Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00