diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-01-25 16:34:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 21:34:37 +0000 |
commit | 7e8d455280b58dbda3ff24b19dbffad2d6c6c253 (patch) | |
tree | c7760cdcfdea711c5fa53b6efe051904193177ca /synapse/module_api | |
parent | Add missing type hints for tests.events. (#14904) (diff) | |
download | synapse-7e8d455280b58dbda3ff24b19dbffad2d6c6c253.tar.xz |
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.
Diffstat (limited to 'synapse/module_api')
-rw-r--r-- | synapse/module_api/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/module_api/__init__.py b/synapse/module_api/__init__.py index 6153a48257..d22dd19d38 100644 --- a/synapse/module_api/__init__.py +++ b/synapse/module_api/__init__.py @@ -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( |