This commit is contained in:
Matthew Hodgson 2018-01-07 23:08:54 +00:00
parent f512e5c137
commit 5ea4d5d38a

View file

@ -202,7 +202,7 @@ class RoomSendEventRestServlet(ClientV1RestServlet):
"sender": requester.user.to_string(), "sender": requester.user.to_string(),
} }
if request.args['ts'] and requester.app_service: if 'ts' in request.args and requester.app_service:
event_dict['origin_server_ts'] = parse_integer(request, "ts", 0) event_dict['origin_server_ts'] = parse_integer(request, "ts", 0)
msg_handler = self.handlers.message_handler msg_handler = self.handlers.message_handler