mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-31 12:18:40 -04:00
Change DomainSpecificString so that it doesn't use a HomeServer object
This commit is contained in:
parent
ec2b5d8c28
commit
9d53228158
12 changed files with 63 additions and 66 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue