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

Add typing information to the device handler. #8407

Merged
merged 7 commits into from
Oct 7, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix the types of stream_id.
clokep committed Oct 5, 2020
commit d3d707f3e2dfb55c8b6d78395fc2c1cafb3cc328
4 changes: 2 additions & 2 deletions synapse/storage/databases/main/devices.py
Original file line number Diff line number Diff line change
@@ -955,7 +955,7 @@ async def update_device(
)

async def update_remote_device_list_cache_entry(
self, user_id: str, device_id: str, content: JsonDict, stream_id: int
self, user_id: str, device_id: str, content: JsonDict, stream_id: str
) -> None:
"""Updates a single device in the cache of a remote user's devicelist.

@@ -983,7 +983,7 @@ def _update_remote_device_list_cache_entry_txn(
user_id: str,
device_id: str,
content: JsonDict,
stream_id: int,
stream_id: str,
) -> None:
if content.get("deleted"):
self.db_pool.simple_delete_txn(