diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2021-12-09 18:41:19 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2021-12-09 18:41:19 +0000 |
commit | 2a0eabbee358bafc84cef79a6d00e97eaafdf553 (patch) | |
tree | 408bffad99fa4e7785e615da4e48751c66b604e1 | |
parent | squash into move DeviceLists commit (diff) | |
download | synapse-2a0eabbee358bafc84cef79a6d00e97eaafdf553.tar.xz |
squash into 'and use everywhere'
-rw-r--r-- | synapse/appservice/__init__.py | 6 |
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) |