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

Commit

Permalink
Update docstring to mention to_device_key
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Nov 4, 2021
1 parent 9eea99c commit d8ebde9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion synapse/config/experimental.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,5 @@ def read_config(self, config: JsonDict, **kwargs):
# that have opted in to receive them. This setting optionally adds to-device messages
# to that list.
self.msc2409_to_device_messages_enabled: bool = experimental.get(
"msc2409_to_device_enabled", False
"msc2409_to_device_messages_enabled", False
)
8 changes: 6 additions & 2 deletions synapse/handlers/appservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,12 @@ def notify_interested_services_ephemeral(
Args:
stream_key: The stream the event came from.
`stream_key` can be "typing_key", "receipt_key" or "presence_key". Any other
value for `stream_key` will cause this function to return early.
`stream_key` can be "typing_key", "receipt_key", "presence_key" and,
if enabled, "to_device_key". Any other value for `stream_key` will
cause this function to return early.
"to_device_key" will only be handled if the experimental
`msc2409_to_device_messages_enabled` config option is set to true.
Ephemeral events will only be pushed to appservices that have opted into
them.
Expand Down

0 comments on commit d8ebde9

Please sign in to comment.