diff --git a/json-api/src/messages.rs b/json-api/src/messages.rs index a848cc6..dd599cb 100644 --- a/json-api/src/messages.rs +++ b/json-api/src/messages.rs @@ -103,6 +103,9 @@ pub async fn send_message(pool: &Pool, response: &mut Response, body: Body use crate::rtc; rtc::new_message(pool, msg).await; }, + // All ok but nothing to do without rtc enabled + #[cfg(not(feature = "rtc"))] + Ok(Row(_)) => {}, Ok(RestrictedInput(_msg)) => *response.status_mut() = StatusCode::BAD_REQUEST, Ok(Other(msg)) => { eprintln!("{}", msg);