summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorWill Hunt <will@half-shot.uk>2020-10-13 10:45:19 +0100
committerWill Hunt <will@half-shot.uk>2020-10-13 10:45:19 +0100
commit1961b175dd30f9bc89e874e688c3f401162818a4 (patch)
treed40775222ea8fa379ef78313523a0731680838ac /synapse
parentAdd extra statement to notify_interested_services_ephemeral (diff)
downloadsynapse-1961b175dd30f9bc89e874e688c3f401162818a4.tar.xz
Save a few DB callsx
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/appservice.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py
index d39665707a..fd1e7e7ea8 100644
--- a/synapse/handlers/appservice.py
+++ b/synapse/handlers/appservice.py
@@ -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"]