From ff556ecdfc40f417055d80825cdfe82b00abfd48 Mon Sep 17 00:00:00 2001 From: 0xf8 <0xf8.dev@proton.me> Date: Tue, 11 Apr 2023 23:35:39 -0400 Subject: [PATCH] Fix response_html not using response_md --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8d50b59..8dbea00 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,7 +65,7 @@ async fn on_room_message(event: OriginalSyncRoomMessageEvent, room: Room) { if hit_all { // Add stats to end of response let response = format!("{}\nDetection stats: {:?}", scams["response"].as_str().unwrap(), counter.to_owned()); - let response_html = format!("{}
Detection stats: {:?}", scams["response"].as_str().unwrap(), counter.to_owned()); + let response_html = format!("{}
Detection stats: {:?}", scams["response_md"].as_str().unwrap(), counter.to_owned()); // Send message let msg = RoomMessageEventContent::text_html(response, response_html);