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

Fix providing a RoomStreamToken instance to _notify_app_services_ephemeral #11137

Merged
merged 9 commits into from
Nov 2, 2021
Prev Previous commit
Next Next commit
Merge branch 'develop' of github.com:matrix-org/synapse into anoa/e2e…
…_as_room_stream_token
  • Loading branch information
anoadragon453 committed Oct 21, 2021
commit 9abbd08e33fc7710d952e870e26368d17915bbba
6 changes: 6 additions & 0 deletions synapse/handlers/appservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ async def _notify_interested_services_ephemeral(
with Measure(self.clock, "notify_interested_services_ephemeral"):
for service in services:
if stream_key == "typing_key":
# Note that we don't persist the token (via set_type_stream_id_for_appservice)
# for typing_key due to performance reasons and due to their highly
# ephemeral nature.
#
# Instead we simply grab the latest typing updates in _handle_typing
# and, if they apply to this application service, send it off.
events = await self._handle_typing(service, new_token)
if events:
self.scheduler.submit_ephemeral_events_for_as(service, events)
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.