mirror of
https://github.com/element-hq/synapse
synced 2024-08-19 23:10:20 +00:00
Add message to assertion
This commit is contained in:
parent
08d2f902dd
commit
ed25abe05f
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ class MessageHandler(BaseRoomHandler):
|
|||
"""
|
||||
# TODO(paul): Why does 'event' not have a 'user' object?
|
||||
user = self.hs.parse_userid(event.user_id)
|
||||
assert(user.is_mine)
|
||||
assert user.is_mine, "User must be our own: %s" % (user,)
|
||||
|
||||
if stamp_event:
|
||||
event.content["hsob_ts"] = int(self.clock.time_msec())
|
||||
|
|
Loading…
Reference in a new issue