Remove strip_rich_reply_fallback_text in favor of remove_plain_reply_fallback from ruma events

No need to reinvent the wheel.
This commit is contained in:
Slavi Pantaleev
2024-10-03 16:02:06 +03:00
parent a7b016a3d3
commit 393be9be5a
2 changed files with 3 additions and 35 deletions

View File

@@ -296,13 +296,6 @@ async fn process_matrix_messages() {
}
}
#[test]
fn strip_rich_reply_fallback_text() {
let text = "> <@admin:example.com> What's the difference between Matrix and XMPP?\n\nAnswer me";
let stripped_text = super::strip_rich_reply_fallback_text(text);
assert_eq!(stripped_text, "Answer me");
}
#[test]
fn create_list_of_bot_user_prefixes_to_strip() {
let bot_user_id =