diff options
author | Nick Mills-Barrett <nick@beeper.com> | 2022-04-26 20:14:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 20:14:21 +0100 |
commit | 63ba9ba38b47bc20074e2c83492c4d113cfe21b8 (patch) | |
tree | f2fea816f03381980f86abec2f5aa0319f76dfce /synapse/handlers/appservice.py | |
parent | Merge tag 'v1.58.0rc2' into develop (diff) | |
download | synapse-63ba9ba38b47bc20074e2c83492c4d113cfe21b8.tar.xz |
Bound ephemeral events by key (#12544)
Co-authored-by: Brad Murray <bradtgmurray@gmail.com> Co-authored-by: Andrew Morgan <andrewm@element.io>
Diffstat (limited to 'synapse/handlers/appservice.py')
-rw-r--r-- | synapse/handlers/appservice.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py index 1b57840506..b3894666cc 100644 --- a/synapse/handlers/appservice.py +++ b/synapse/handlers/appservice.py @@ -416,7 +416,7 @@ class ApplicationServicesHandler: return typing async def _handle_receipts( - self, service: ApplicationService, new_token: Optional[int] + self, service: ApplicationService, new_token: int ) -> List[JsonDict]: """ Return the latest read receipts that the given application service should receive. @@ -447,7 +447,7 @@ class ApplicationServicesHandler: receipts_source = self.event_sources.sources.receipt receipts, _ = await receipts_source.get_new_events_as( - service=service, from_key=from_key + service=service, from_key=from_key, to_key=new_token ) return receipts |