Remove trailing newlines in body (#125)

This commit is contained in:
Ulyssa 2023-06-30 21:18:08 -07:00
parent 7c39e88ba2
commit 8d4539831f
No known key found for this signature in database
GPG key ID: 1B3965A3D18B9B64

View file

@ -435,7 +435,7 @@ impl ChatState {
return Ok(None);
}
let mut msg = text_to_message(msg.to_string());
let mut msg = text_to_message(msg.trim_end().to_string());
if let Some((_, event_id)) = &self.editing {
msg.relates_to = Some(Relation::Replacement(Replacement::new(