From 928c6336d3e2f5ea666db9026f97b0e2e27382b0 Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 27 May 2021 23:17:47 -0700 Subject: [PATCH] * Fixing some of the /message/send API hits by including all required match branches Some tests are still failing however and I have no idea why --- json-api/src/messages.rs | 3 +++ 1 file changed, 3 insertions(+) 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);