diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-08-26 07:53:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 11:53:52 +0000 |
commit | 1aa0dad02187c3b972187f5952cfbce336b0ca5c (patch) | |
tree | 6c948ed89be836c765e27bf1a4c109d5df1426d2 /synapse/handlers/presence.py | |
parent | Cache the result of fetching the room hierarchy over federation. (#10647) (diff) | |
download | synapse-1aa0dad02187c3b972187f5952cfbce336b0ca5c.tar.xz |
Additional type hints for REST servlets (part 2). (#10674)
Applies the changes from #10665 to additional modules.
Diffstat (limited to 'synapse/handlers/presence.py')
-rw-r--r-- | synapse/handlers/presence.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index 7ca14e1d84..4418d63df7 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py @@ -353,6 +353,11 @@ class BasePresenceHandler(abc.ABC): # otherwise would not do). await self.set_state(UserID.from_string(user_id), state, force_notify=True) + async def is_visible(self, observed_user: UserID, observer_user: UserID) -> bool: + raise NotImplementedError( + "Attempting to check presence on a non-presence worker." + ) + class _NullContextManager(ContextManager[None]): """A context manager which does nothing.""" |