mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 14:04:59 -04:00
Fix typing for SyncHandler (#8237)
This commit is contained in:
parent
6f6f371a87
commit
5bfc79486d
4 changed files with 13 additions and 10 deletions
|
@ -298,8 +298,8 @@ class RoomMemberWorkerStore(EventsWorkerStore):
|
|||
return None
|
||||
|
||||
async def get_rooms_for_local_user_where_membership_is(
|
||||
self, user_id: str, membership_list: List[str]
|
||||
) -> Optional[List[RoomsForUser]]:
|
||||
self, user_id: str, membership_list: Collection[str]
|
||||
) -> List[RoomsForUser]:
|
||||
"""Get all the rooms for this *local* user where the membership for this user
|
||||
matches one in the membership list.
|
||||
|
||||
|
@ -314,7 +314,7 @@ class RoomMemberWorkerStore(EventsWorkerStore):
|
|||
The RoomsForUser that the user matches the membership types.
|
||||
"""
|
||||
if not membership_list:
|
||||
return None
|
||||
return []
|
||||
|
||||
rooms = await self.db_pool.runInteraction(
|
||||
"get_rooms_for_local_user_where_membership_is",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue