Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add type hints to synapse/storage/databases/main/e2e_room_keys.py #11549

Merged
merged 8 commits into from
Dec 14, 2021
9 changes: 9 additions & 0 deletions synapse/storage/databases/main/e2e_room_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,15 @@ class RoomKey(TypedDict):


class EndToEndRoomKeyStore(SQLBaseStore):
"""The store for end to end room key backups.

See https://spec.matrix.org/v1.1/client-server-api/#server-side-key-backups

As per the spec, backups are identified by an opaque version string. Internally,
version identifiers are assigned using incrementing integers. Non-numeric version
strings are treated as if they do not exist, since we would have never issued them.
DMRobertson marked this conversation as resolved.
Show resolved Hide resolved
"""

async def update_e2e_room_key(
self,
user_id: str,
Expand Down