summary refs log tree commit diff
path: root/synapse/handlers/message.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-12-02 10:42:28 +0000
committerErik Johnston <erik@matrix.org>2014-12-02 10:42:28 +0000
commit9d53228158bd94093eea4407b93b564ee065930b (patch)
tree8a61caf650cd28843b1edf965e0064e6d68e5894 /synapse/handlers/message.py
parentStore full JSON of events in db (diff)
downloadsynapse-9d53228158bd94093eea4407b93b564ee065930b.tar.xz
Change DomainSpecificString so that it doesn't use a HomeServer object
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r--synapse/handlers/message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index 42dc4d46f3..269d6622e1 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -79,7 +79,7 @@ class MessageHandler(BaseHandler):
         self.ratelimit(event.user_id)
         # TODO(paul): Why does 'event' not have a 'user' object?
         user = self.hs.parse_userid(event.user_id)
-        assert user.is_mine, "User must be our own: %s" % (user,)
+        assert self.hs.is_mine(user), "User must be our own: %s" % (user,)
 
         snapshot = yield self.store.snapshot_room(event)