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

Commit 88d2d5c

Browse files
committed
Always set the stream position, even when there are no events.
1 parent 451c31f commit 88d2d5c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

synapse/handlers/appservice.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ async def _notify_interested_services_ephemeral(
268268
service, events
269269
)
270270

271-
# Persist the latest handled stream token for this appservice
272-
await self.store.set_type_stream_id_for_appservice(
273-
service, "read_receipt", new_token
274-
)
271+
# Persist the latest handled stream token for this appservice
272+
await self.store.set_type_stream_id_for_appservice(
273+
service, "read_receipt", new_token
274+
)
275275

276276
elif stream_key == "presence_key":
277277
events = await self._handle_presence(service, users, new_token)
@@ -280,10 +280,10 @@ async def _notify_interested_services_ephemeral(
280280
service, events
281281
)
282282

283-
# Persist the latest handled stream token for this appservice
284-
await self.store.set_type_stream_id_for_appservice(
285-
service, "presence", new_token
286-
)
283+
# Persist the latest handled stream token for this appservice
284+
await self.store.set_type_stream_id_for_appservice(
285+
service, "presence", new_token
286+
)
287287

288288
async def _handle_typing(
289289
self, service: ApplicationService, new_token: int

0 commit comments

Comments
 (0)