mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 20:44:50 -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
|
@ -1158,7 +1158,7 @@ class ModuleApi:
|
|||
# Send to remote destinations.
|
||||
destination = UserID.from_string(user).domain
|
||||
presence_handler.get_federation_queue().send_presence_to_destinations(
|
||||
presence_events, destination
|
||||
presence_events, [destination]
|
||||
)
|
||||
|
||||
def looping_background_call(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue