Fix response_html not using response_md
This commit is contained in:
parent
257b033f03
commit
ff556ecdfc
@ -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!("{}<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
|
||||
let msg = RoomMessageEventContent::text_html(response, response_html);
|
||||
|
Loading…
Reference in New Issue
Block a user