diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-09-01 15:58:16 +0100 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-09-01 15:58:30 +0100 |
commit | fd696f124305ce965f24f10f734dc3d5d3ebe2b6 (patch) | |
tree | 3da1f5fa029cbda02641fa8602c5eae71840c1f8 /synapse/handlers | |
parent | Specced out state/non-state events. Start working on the myriad of syncing APIs. (diff) | |
download | synapse-fd696f124305ce965f24f10f734dc3d5d3ebe2b6.tar.xz |
Perform room unit tests with 'local' users actually in the right domain ;)
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/message.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index c8ff34e5f5..f133458b91 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -76,6 +76,10 @@ class MessageHandler(BaseRoomHandler): Raises: SynapseError if something went wrong. """ + # TODO(paul): Why does 'event' not have a 'user' object? + user = self.hs.parse_userid(event.user_id) + assert(user.is_mine) + if stamp_event: event.content["hsob_ts"] = int(self.clock.time_msec()) |