storkit: merge 430_bug_status_command_traffic_light_dots_not_coloured_in_matrix

This commit is contained in:
dave
2026-03-28 13:55:01 +00:00
parent eff8f6a6a6
commit fe0a032e8e
3 changed files with 153 additions and 3 deletions
@@ -186,10 +186,9 @@ pub(super) async fn on_room_message(
ambient_rooms: &ctx.ambient_rooms,
room_id: &room_id_str,
};
if let Some(response) = super::super::commands::try_handle_command(&dispatch, &user_message) {
if let Some((response, response_html)) = super::super::commands::try_handle_command_with_html(&dispatch, &user_message) {
slog!("[matrix-bot] Handled bot command from {sender}");
let html = markdown_to_html(&response);
if let Ok(msg_id) = ctx.transport.send_message(&room_id_str, &response, &html).await
if let Ok(msg_id) = ctx.transport.send_message(&room_id_str, &response, &response_html).await
&& let Ok(event_id) = msg_id.parse()
{
ctx.bot_sent_event_ids.lock().await.insert(event_id);