mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Add message to assertion
This commit is contained in:
parent
08d2f902dd
commit
ed25abe05f
@ -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 New Issue
Block a user