Also trim colons

This commit is contained in:
ErrorNoInternet 2023-01-28 22:40:24 +08:00
parent 54679d5a52
commit 8d4b076eac
Signed by untrusted user who does not match committer: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -117,6 +117,7 @@ async fn room_message_handler(
&text_content
.body
.trim_start_matches(&state.display_name)
.trim_start_matches(":")
.trim()
.to_string(),
&event.sender.to_string(),