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/message.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/message.py')
-rw-r--r-- | synapse/handlers/message.py | 2 |
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) |