1
0

squash into 'and use everywhere'

This commit is contained in:
Andrew Morgan
2021-12-09 18:41:19 +00:00
parent 34eacf7f2d
commit 2a0eabbee3

View File

@@ -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)