diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2021-11-29 18:56:08 +0000 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2021-12-08 18:30:52 +0000 |
commit | 6daab0f9354e4aebafa36f590680700747735cba (patch) | |
tree | d435030e98a3c0ab989b4dd77d71f988361a9afb | |
parent | Add some caching to interest methods (diff) | |
download | synapse-6daab0f9354e4aebafa36f590680700747735cba.tar.xz |
is_interested_in_room public
-rw-r--r-- | synapse/appservice/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/appservice/__init__.py b/synapse/appservice/__init__.py index f677fd6c4f..36d09cb53e 100644 --- a/synapse/appservice/__init__.py +++ b/synapse/appservice/__init__.py @@ -172,7 +172,7 @@ class ApplicationService: return False @cached(num_args=1, cache_context=True) - async def _is_interested_in_room( + async def is_interested_in_room( self, room_id: str, store: "DataStore", @@ -245,7 +245,7 @@ class ApplicationService: # TODO: The store is only optional here to aid testing this function. We should # instead convert the tests to use HomeServerTestCase in order to get a working # database instance. - if store is not None and await self._is_interested_in_room( + if store is not None and await self.is_interested_in_room( event.room_id, store, on_invalidate=cache_context.invalidate ): return True |