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

Commit

Permalink
mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnuxie committed Jul 6, 2022
1 parent 645e799 commit 9cd91ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions synapse/handlers/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ async def _generate_sync_entry_for_rooms(
room_changes = await self._get_rooms_changed(
sync_result_builder,
ignored_users,
self.rooms_to_exclude + ignored_rooms,
self.rooms_to_exclude + list(ignored_rooms),
)
tags_by_room = await self.store.get_updated_tags(
user_id, since_token.account_data_key
Expand All @@ -1550,7 +1550,7 @@ async def _generate_sync_entry_for_rooms(
room_changes = await self._get_all_rooms(
sync_result_builder,
ignored_users,
self.rooms_to_exclude + ignored_rooms,
self.rooms_to_exclude + list(ignored_rooms),
)
tags_by_room = await self.store.get_tags_for_user(user_id)

Expand Down
4 changes: 2 additions & 2 deletions synapse/storage/databases/main/account_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,10 +568,10 @@ def _add_account_data_for_user(
)
)
# If the data is invalid, no one is ignored.
ignored_users_content = content.get("ignored_rooms", [])
ignored_rooms_content = content.get("ignored_rooms", [])
if isinstance(ignored_rooms_content, list):
room_ids = []
for room in ignored_users_content:
for room in ignored_rooms_content:
room_id = room.get("room_id")
if room_id:
room_ids.append(room_id)
Expand Down

0 comments on commit 9cd91ed

Please sign in to comment.