synapse-product/synapse
Andrew Morgan e8d0853739
Generalise _maybe_store_room_on_invite (#8754)
There's a handy function called maybe_store_room_on_invite which allows us to create an entry in the rooms table for a room and its version for which we aren't joined to yet, but we can reference when ingesting events about.

This is currently used for invites where we receive some stripped state about the room and pass it down via /sync to the client, without us being in the room yet.

There is a similar requirement for knocking, where we will eventually do the same thing, and need an entry in the rooms table as well. Thus, reusing this function works, however its name needs to be generalised a bit.

Separated out from #6739.
2020-11-13 16:24:04 +00:00
..
_scripts Remove obsolete __future__ imports (#8337) 2020-09-17 08:37:01 -04:00
api 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
app Fix SIGHUP handler (#8697) 2020-11-06 11:42:07 +00:00
appservice Tie together matches_user_in_member_list and get_users_in_room caches (#8676) 2020-10-30 15:23:16 +00:00
config SAML: add <mdui:UIInfo> element examples (#8718) 2020-11-13 12:07:50 +00:00
crypto Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
events Block clients from sending server ACLs that lock the local server out. (#8708) 2020-11-03 12:13:48 +00:00
federation 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
groups Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
handlers Generalise _maybe_store_room_on_invite (#8754) 2020-11-13 16:24:04 +00:00
http Better error message when a remote resource uses invalid Content-Type (#8719) 2020-11-11 14:22:40 +00:00
logging Gracefully handle a pending logging connection during shutdown. (#8685) 2020-10-29 12:53:57 -04:00
metrics Add metrics for tracking 3PID /requestToken requests. (#8712) 2020-11-13 12:03:51 +00:00
module_api Allow modules to create and send events into rooms (#8479) 2020-10-09 13:46:36 +01:00
push Add base pushrule to notify for jitsi conferences (#8286) 2020-11-02 16:36:14 +00:00
replication Generalise _maybe_store_room_on_invite (#8754) 2020-11-13 16:24:04 +00:00
res/templates Include a simple message in email notifications that include encrypted content (#8545) 2020-10-19 09:12:39 -04:00
rest Add metrics for tracking 3PID /requestToken requests. (#8712) 2020-11-13 12:03:51 +00:00
server_notices Check support room has only two users before sending a notice (#8728) 2020-11-11 14:23:16 +00:00
spam_checker_api Combine SpamCheckerApi with the more generic ModuleApi. (#8464) 2020-10-07 12:03:26 +01:00
state Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
static Fix typos and spelling errors. (#8639) 2020-10-23 12:38:40 -04:00
storage Generalise _maybe_store_room_on_invite (#8754) 2020-11-13 16:24:04 +00:00
streams Make token serializing/deserializing async (#8427) 2020-09-30 20:29:19 +01:00
util Merge pull request #8678 from matrix-org/rav/fix_frozen_events 2020-10-30 15:24:10 +00:00
__init__.py 1.23.0rc1 2020-11-13 13:59:58 +00:00
event_auth.py Ensure that event.redacts is the proper type before handling it (#8457) 2020-10-05 10:24:17 -04:00
notifier.py Don't pull event from DB when handling replication traffic. (#8669) 2020-10-28 12:11:45 +00:00
python_dependencies.py Drop support for ancient prometheus_client (#8426) 2020-09-30 16:42:05 +01:00
secrets.py Stop sub-classing object (#8249) 2020-09-04 06:54:56 -04:00
server.py Solidify the HomeServer constructor. (#8515) 2020-10-15 15:29:13 -04:00
types.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
visibility.py Do not assume that account data is of the correct form. (#8454) 2020-10-05 09:28:05 -04:00