mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-11 13:34:59 -04:00
Fix a bug in the send_local_online_presence_to module API (#14880)
Destination was being used incorrectly (a single destination instead of a list of destinations was being passed). This also updates some of the types in the area to not use Collection[str], which is a footgun.
This commit is contained in:
parent
3c3ba31507
commit
7e8d455280
5 changed files with 19 additions and 11 deletions
|
@ -46,6 +46,7 @@ from synapse.types import (
|
|||
JsonDict,
|
||||
PersistedEventPosition,
|
||||
RoomStreamToken,
|
||||
StrCollection,
|
||||
StreamKeyType,
|
||||
StreamToken,
|
||||
UserID,
|
||||
|
@ -716,7 +717,7 @@ class Notifier:
|
|||
|
||||
async def _get_room_ids(
|
||||
self, user: UserID, explicit_room_id: Optional[str]
|
||||
) -> Tuple[Collection[str], bool]:
|
||||
) -> Tuple[StrCollection, bool]:
|
||||
joined_room_ids = await self.store.get_rooms_for_user(user.to_string())
|
||||
if explicit_room_id:
|
||||
if explicit_room_id in joined_room_ids:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue