Save a few DB callsx

hs/push-reports-to-as
Will Hunt 2020-10-13 10:45:19 +01:00
parent 3cc9a99ede
commit 1961b175dd
1 changed files with 3 additions and 3 deletions

View File

@ -209,9 +209,9 @@ class ApplicationServicesHandler:
events = await self._handle_presence(service, users)
if events:
self.scheduler.submit_ephemeral_events_for_as(service, events)
await self.store.set_type_stream_id_for_appservice(
service, "presence", new_token
)
await self.store.set_type_stream_id_for_appservice(
service, "presence", new_token
)
async def _handle_typing(self, service: ApplicationService, new_token: int):
typing_source = self.event_sources.sources["typing"]