summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorSean Quah <8349537+squahtx@users.noreply.github.com>2022-03-08 15:58:14 +0000
committerGitHub <noreply@github.com>2022-03-08 15:58:14 +0000
commit562718278847375636ead2ed3afcc9d9d482ef96 (patch)
tree3f2ac3d4e32b0e8e62b251055daeccc30d122bfe /synapse/handlers
parentMerge branch 'master' into develop (diff)
downloadsynapse-562718278847375636ead2ed3afcc9d9d482ef96.tar.xz
Use `ParamSpec` in type hints for `synapse.logging.context` (#12150)
Signed-off-by: Sean Quah <seanq@element.io>
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/initial_sync.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/handlers/initial_sync.py b/synapse/handlers/initial_sync.py
index 316cfae24f..a7db8feb57 100644
--- a/synapse/handlers/initial_sync.py
+++ b/synapse/handlers/initial_sync.py
@@ -153,8 +153,9 @@ class InitialSyncHandler:
 
         public_room_ids = await self.store.get_public_room_ids()
 
-        limit = pagin_config.limit
-        if limit is None:
+        if pagin_config.limit is not None:
+            limit = pagin_config.limit
+        else:
             limit = 10
 
         serializer_options = SerializeEventConfig(as_client_event=as_client_event)