Perform room unit tests with 'local' users actually in the right domain ;)

This commit is contained in:
Paul "LeoNerd" Evans 2014-09-01 15:58:16 +01:00
parent 401c16559d
commit fd696f1243
2 changed files with 10 additions and 6 deletions

View file

@ -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())