diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py index 19a317930f..3e33f49478 100644 --- a/synapse/rest/client/v1/room.py +++ b/synapse/rest/client/v1/room.py @@ -202,7 +202,7 @@ class RoomSendEventRestServlet(ClientV1RestServlet): "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) msg_handler = self.handlers.message_handler