summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-09-01 15:58:16 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-09-01 15:58:30 +0100
commitfd696f124305ce965f24f10f734dc3d5d3ebe2b6 (patch)
tree3da1f5fa029cbda02641fa8602c5eae71840c1f8 /synapse
parentSpecced out state/non-state events. Start working on the myriad of syncing APIs. (diff)
downloadsynapse-fd696f124305ce965f24f10f734dc3d5d3ebe2b6.tar.xz
Perform room unit tests with 'local' users actually in the right domain ;)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/message.py4
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())