diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2021-10-21 17:42:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 17:42:25 +0100 |
commit | 6408372234eef2d72a13ee838c07199751c56378 (patch) | |
tree | 494d4e8582c1c4b3d532f2d7e76ce0ab96780d12 /synapse/handlers/receipts.py | |
parent | Add missing type hints to synapse.crypto. (#11146) (diff) | |
download | synapse-6408372234eef2d72a13ee838c07199751c56378.tar.xz |
Improve docstrings for methods related to sending EDUs to application services (#11138)
Diffstat (limited to 'synapse/handlers/receipts.py')
-rw-r--r-- | synapse/handlers/receipts.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/synapse/handlers/receipts.py b/synapse/handlers/receipts.py index 374e961e3b..4911a11535 100644 --- a/synapse/handlers/receipts.py +++ b/synapse/handlers/receipts.py @@ -241,12 +241,18 @@ class ReceiptEventSource(EventSource[int, JsonDict]): async def get_new_events_as( self, from_key: int, service: ApplicationService ) -> Tuple[List[JsonDict], int]: - """Returns a set of new receipt events that an appservice + """Returns a set of new read receipt events that an appservice may be interested in. Args: from_key: the stream position at which events should be fetched from service: The appservice which may be interested + + Returns: + A two-tuple containing the following: + * A list of json dictionaries derived from read receipts that the + appservice may be interested in. + * The current read receipt stream token. """ from_key = int(from_key) to_key = self.get_current_key() |