storkit: merge 392_refactor_extract_shared_transport_utilities_from_matrix_module_into_chat_submodule

This commit is contained in:
dave
2026-03-25 14:43:28 +00:00
parent 580ab1ce68
commit 077288e7b7
21 changed files with 344 additions and 326 deletions
+2 -2
View File
@@ -10,7 +10,7 @@
//! (it clears local session state and message history) and is not routed here.
use crate::http::context::{AppContext, OpenApiResult};
use crate::chat::transport::matrix::commands::CommandDispatch;
use crate::chat::commands::CommandDispatch;
use poem::http::StatusCode;
use poem_openapi::{Object, OpenApi, Tags, payload::Json};
use serde::{Deserialize, Serialize};
@@ -112,7 +112,7 @@ fn dispatch_sync(
format!("{bot_name} {cmd} {args}")
};
match crate::chat::transport::matrix::commands::try_handle_command(&dispatch, &synthetic) {
match crate::chat::commands::try_handle_command(&dispatch, &synthetic) {
Some(response) => response,
None => {
// Command exists in the registry but its fallback handler returns None