return service.modifyMessageCollection(user, msgCollection, request.getToken());
}
HandlerPreconditions.requireSingular(messageIds, "Only one messageId at a time");
Message message = request.getTypedParameter("entity", Message.class);
// TODO, do more validation.
if (message == null || message.getId() == null) {
throw new ProtocolException(HttpServletResponse.SC_BAD_REQUEST,
"cannot parse message or missing ID");
}
return service.modifyMessage(user, msgCollId, messageIds.get(0), message, request.getToken());