synapse-product/synapse/replication/http
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
..
__init__.py Typing worker needs to handle stream update requests (#7967) 2020-07-28 11:04:53 +01:00
_base.py Add type hints to response cache. (#8507) 2020-10-09 11:35:11 -04:00
devices.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
federation.py Generalise _maybe_store_room_on_invite (#8754) 2020-11-13 16:24:04 +00:00
login.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
membership.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
presence.py Convert replication code to async/await. (#7987) 2020-08-03 07:12:55 -04:00
register.py Simplify super() calls to Python 3 syntax. (#8344) 2020-09-18 09:56:44 -04:00
send_event.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
streams.py Convert replication code to async/await. (#7987) 2020-08-03 07:12:55 -04:00