synapse-old/synapse/handlers
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
..
ui_auth Use mypy 1.0 (#15052) 2023-02-16 16:09:11 +00:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
account.py Optionally include account validity in MSC3720 account status responses (#12266) 2022-03-24 11:19:41 +01:00
account_data.py Experimental MSC3890 Implementation: Fix deleting account data when using an account data writer worker (#14869) 2023-03-03 10:51:57 +00:00
account_validity.py `N + 3`: Read from column `full_user_id` rather than `user_id` of tables `profiles` and `user_filters` (#15649) 2023-06-02 17:24:13 -07:00
admin.py Implements admin API to lock an user (MSC3939) (#15870) 2023-08-10 09:10:55 +00:00
appservice.py Add support for claiming multiple OTKs at once. (#15468) 2023-04-27 12:57:46 -04:00
auth.py `N + 3`: Read from column `full_user_id` rather than `user_id` of tables `profiles` and `user_filters` (#15649) 2023-06-02 17:24:13 -07:00
cas.py Add configuration setting for CAS protocol version (#15816) 2023-08-24 16:11:23 -04:00
deactivate_account.py `N + 3`: Read from column `full_user_id` rather than `user_id` of tables `profiles` and `user_filters` (#15649) 2023-06-02 17:24:13 -07:00
device.py Support MSC3814: Dehydrated Devices Part 2 (#16010) 2023-08-08 12:04:46 -07:00
devicemessage.py Support MSC3814: Dehydrated Devices Part 2 (#16010) 2023-08-08 12:04:46 -07:00
directory.py Better warning in logs when we fail to fetch an alias (#15922) 2023-07-11 17:12:41 -05:00
e2e_keys.py Add requesting user id parameter to key claim methods in `TransportLayerClient` (#15663) 2023-05-24 13:23:26 -07:00
e2e_room_keys.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
event_auth.py Support room version 11 (#15912) 2023-07-18 08:44:59 -04:00
events.py Make `EventHandler.get_event` return `None` when the requested event is not found (#15298) 2023-03-21 13:23:47 +00:00
federation.py Only lock when we're backfilling (#16159) 2023-08-23 09:23:41 +01:00
federation_event.py Remove experimental MSC2716 implementation to incrementally import history into existing rooms (#15748) 2023-06-16 14:12:24 -05:00
identity.py Rename blacklist/whitelist internally. (#15620) 2023-05-19 12:25:25 +00:00
initial_sync.py Pass the requester during event serialization. (#15174) 2023-03-06 16:08:39 +00:00
jwt.py Consolidate logic to check for deactivated users. (#15634) 2023-05-23 10:35:43 -04:00
message.py Fix typechecking with twisted trunk (#16121) 2023-08-24 14:53:07 +00:00
oidc.py Add stricter mypy options (#15694) 2023-05-31 07:18:29 -04:00
pagination.py Only lock when we're backfilling (#16159) 2023-08-23 09:23:41 +01:00
password_policy.py Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
presence.py Combine logic about not overriding BUSY presence. (#16170) 2023-08-28 11:03:23 -04:00
profile.py Trim whitespace when setting display names (#16031) 2023-08-01 09:14:02 -04:00
push_rules.py Error if attempting to set m.push_rules account data, per MSC4010. (#15555) 2023-05-09 10:34:10 -04:00
read_marker.py Remove some unused `server_name` fields (#15723) 2023-06-06 12:32:29 +01:00
receipts.py Return read-only collections from `@cached` methods (#13755) 2023-02-10 23:29:00 +00:00
register.py Add + as an allowed character for Matrix IDs (MSC4009) (#15911) 2023-07-11 12:21:00 -04:00
relations.py Add a catch-all * to the supported relation types when redacting (#15705) 2023-06-02 13:13:50 +00:00
room.py Support room version 11 (#15912) 2023-07-18 08:44:59 -04:00
room_list.py Use stable prefixes for MSC3827: filtering of `/publicRooms` by room type (#13370) 2022-07-27 19:46:57 +01:00
room_member.py Rename pagination&purge locks and add comments explaining them (#16112) 2023-08-16 16:19:54 +02:00
room_member_worker.py Add config option to forget rooms automatically when users leave them (#15224) 2023-05-03 12:27:33 +01:00
room_summary.py Support room version 11 (#15912) 2023-07-18 08:44:59 -04:00
saml.py Allow customizing IdP name and icon for SAML and CAS (#16094) 2023-08-11 20:15:17 +00:00
search.py Pass the requester during event serialization. (#15174) 2023-03-06 16:08:39 +00:00
send_email.py Discourage automatic replies to Synapse's emails (#13957) 2022-09-30 13:23:37 +00:00
set_password.py Add a type hint for `get_device_handler()` and fix incorrect types. (#14055) 2022-11-22 14:08:04 -05:00
sso.py Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
state_deltas.py Remove `HomeServer.get_datastore()` (#12031) 2022-02-23 11:04:02 +00:00
stats.py Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
sync.py Disable caching in /sync corner case (#16080) 2023-08-17 10:22:50 +01:00
typing.py Factor out an `is_mine_server_name` method (#15542) 2023-05-05 15:06:22 +01:00
user_directory.py Implements admin API to lock an user (MSC3939) (#15870) 2023-08-10 09:10:55 +00:00
worker_lock.py Rename pagination&purge locks and add comments explaining them (#16112) 2023-08-16 16:19:54 +02:00