anonymousland-synapse/synapse/handlers
Andrew Morgan 4f76eef0e8
Generalise _locally_reject_invite (#8751)
`_locally_reject_invite` generates an out-of-band membership event which can be passed to clients, but not other homeservers.

This is used when we fail to reject an invite over federation. If this happens, we instead just generate a leave event locally and send it down /sync, allowing clients to reject invites even if we can't reach the remote homeserver.

A similar flow needs to be put in place for rescinding knocks. If we're unable to contact any remote server from the room we've tried to knock on, we'd still like to generate and store the leave event locally. Hence the need to reuse, and thus generalise, this method.

Separated from #6739.
2020-11-16 15:37:36 +00:00
..
ui_auth Remove the deprecated Handlers object (#8494) 2020-10-09 07:24:34 -04:00
__init__.py Remove the deprecated Handlers object (#8494) 2020-10-09 07:24:34 -04:00
_base.py Add type hints to profile and base handlers. (#8609) 2020-10-21 06:44:31 -04:00
account_data.py Add type hints to some handlers (#8505) 2020-10-09 07:20:51 -04:00
account_validity.py Add type hints for account validity handler (#8620) 2020-10-26 14:17:31 -04:00
acme_issuing_service.py Use slots in attrs classes where possible (#8296) 2020-09-14 12:50:06 -04:00
acme.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
admin.py Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
appservice.py Add type hints to application services. (#8655) 2020-10-28 11:12:21 -04:00
auth.py Catch exceptions in password_providers (#8636) 2020-11-11 13:24:53 +00:00
cas_handler.py Fix handling of User-Agent headers with bad utf-8. (#8632) 2020-10-23 17:12:59 +01:00
deactivate_account.py Move additional tasks to the background worker, part 4 (#8513) 2020-10-13 08:20:32 -04:00
device.py Add typing information to the device handler. (#8407) 2020-10-07 08:58:21 -04:00
devicemessage.py Add type hints to some handlers (#8505) 2020-10-09 07:20:51 -04:00
directory.py Allow ThirdPartyEventRules modules to manipulate public room state (#8292) 2020-10-05 14:57:46 +01:00
e2e_keys.py e2e: ensure we have both master and self-signing key (#8455) 2020-10-26 18:37:47 +00:00
e2e_room_keys.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
events.py Make token serializing/deserializing async (#8427) 2020-09-30 20:29:19 +01:00
federation.py Generalise _maybe_store_room_on_invite (#8754) 2020-11-13 16:24:04 +00:00
groups_local.py Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
identity.py Fix handling of connection timeouts in outgoing http requests (#8400) 2020-09-29 10:29:21 +01:00
initial_sync.py Add type hints to profile and base handlers. (#8609) 2020-10-21 06:44:31 -04:00
message.py Block clients from sending server ACLs that lock the local server out. (#8708) 2020-11-03 12:13:48 +00:00
oidc_handler.py Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
pagination.py Move additional tasks to the background worker, part 4 (#8513) 2020-10-13 08:20:32 -04:00
password_policy.py Add type hints to some handlers (#8505) 2020-10-09 07:20:51 -04:00
presence.py Fix cache call signature to accept on_invalidate. (#8684) 2020-10-29 15:18:17 +00:00
profile.py Improve error messages of non-str displayname/avatar_url (#8705) 2020-11-02 18:01:09 +00:00
read_marker.py Add type hints to some handlers (#8505) 2020-10-09 07:20:51 -04:00
receipts.py Send some ephemeral events to appservices (#8437) 2020-10-15 12:33:28 -04:00
register.py Add ability for access tokens to belong to one user but grant access to another user. (#8616) 2020-10-29 15:58:44 +00:00
room_list.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
room_member_worker.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
room_member.py Generalise _locally_reject_invite (#8751) 2020-11-16 15:37:36 +00:00
room.py Optimise createRoom with multiple invites (#8559) 2020-10-29 11:48:39 +00:00
saml_handler.py Fix handling of User-Agent headers with bad utf-8. (#8632) 2020-10-23 17:12:59 +01:00
search.py Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
set_password.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
state_deltas.py Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
stats.py Allow background tasks to be run on a separate worker. (#8369) 2020-10-02 08:23:15 -04:00
sync.py Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
typing.py Don't unnecessarily start bg process while handling typing. (#8668) 2020-10-27 15:32:19 +00:00
user_directory.py Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00