diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-02 10:42:28 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-02 10:42:28 +0000 |
commit | 9d53228158bd94093eea4407b93b564ee065930b (patch) | |
tree | 8a61caf650cd28843b1edf965e0064e6d68e5894 /synapse/handlers/typing.py | |
parent | Store full JSON of events in db (diff) | |
download | synapse-9d53228158bd94093eea4407b93b564ee065930b.tar.xz |
Change DomainSpecificString so that it doesn't use a HomeServer object
Diffstat (limited to 'synapse/handlers/typing.py')
-rw-r--r-- | synapse/handlers/typing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/typing.py b/synapse/handlers/typing.py index d88a53242c..be67fb2fc2 100644 --- a/synapse/handlers/typing.py +++ b/synapse/handlers/typing.py @@ -47,7 +47,7 @@ class TypingNotificationHandler(BaseHandler): @defer.inlineCallbacks def started_typing(self, target_user, auth_user, room_id, timeout): - if not target_user.is_mine: + if not self.hs.is_mine(target_user): raise SynapseError(400, "User is not hosted on this Home Server") if target_user != auth_user: @@ -72,7 +72,7 @@ class TypingNotificationHandler(BaseHandler): @defer.inlineCallbacks def stopped_typing(self, target_user, auth_user, room_id): - if not target_user.is_mine: + if not self.hs.is_mine(target_user): raise SynapseError(400, "User is not hosted on this Home Server") if target_user != auth_user: |