summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-12-09 18:41:19 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2021-12-09 18:41:19 +0000
commit2a0eabbee358bafc84cef79a6d00e97eaafdf553 (patch)
tree408bffad99fa4e7785e615da4e48751c66b604e1
parentsquash into move DeviceLists commit (diff)
downloadsynapse-2a0eabbee358bafc84cef79a6d00e97eaafdf553.tar.xz
squash into 'and use everywhere'
-rw-r--r--synapse/appservice/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/appservice/__init__.py b/synapse/appservice/__init__.py
index 09d49471ba..fa4821cbf1 100644
--- a/synapse/appservice/__init__.py
+++ b/synapse/appservice/__init__.py
@@ -171,8 +171,8 @@ class ApplicationService:
                 return True
         return False
 
-    @cached
-    async def is_interested_in_user(
+    @cached()
+    def is_interested_in_user(
         self,
         user_id: str,
     ) -> bool:
@@ -193,7 +193,7 @@ class ApplicationService:
             # User is the appservice's sender_localpart user
             user_id == self.sender
             # User is in a defined namespace
-            or self.is_interested_in_user(user_id)
+            or self.is_user_in_namespace(user_id)
         )
 
     @cached(num_args=1, cache_context=True)