Fix response_html not using response_md

This commit is contained in:
0xf8 2023-04-11 23:35:39 -04:00
parent 257b033f03
commit ff556ecdfc
Signed by: 0xf8
GPG Key ID: 446580D758689584

View File

@ -65,7 +65,7 @@ async fn on_room_message(event: OriginalSyncRoomMessageEvent, room: Room) {
if hit_all { if hit_all {
// Add stats to end of response // Add stats to end of response
let response = format!("{}\nDetection stats: {:?}", scams["response"].as_str().unwrap(), counter.to_owned()); let response = format!("{}\nDetection stats: {:?}", scams["response"].as_str().unwrap(), counter.to_owned());
let response_html = format!("{}<br>Detection stats: <code>{:?}</code>", scams["response"].as_str().unwrap(), counter.to_owned()); let response_html = format!("{}<br>Detection stats: <code>{:?}</code>", scams["response_md"].as_str().unwrap(), counter.to_owned());
// Send message // Send message
let msg = RoomMessageEventContent::text_html(response, response_html); let msg = RoomMessageEventContent::text_html(response, response_html);