mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 20:55:00 -04:00
Make StreamToken.room_key
be a RoomStreamToken
instance. (#8281)
This commit is contained in:
parent
c312ee3cde
commit
fe8ed1b46f
16 changed files with 114 additions and 99 deletions
|
@ -71,7 +71,10 @@ async def inject_event(
|
|||
"""
|
||||
event, context = await create_event(hs, room_version, prev_event_ids, **kwargs)
|
||||
|
||||
await hs.get_storage().persistence.persist_event(event, context)
|
||||
persistence = hs.get_storage().persistence
|
||||
assert persistence is not None
|
||||
|
||||
await persistence.persist_event(event, context)
|
||||
|
||||
return event
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue