From 8d4539831f46939ff8865c37836216d935b15dcd Mon Sep 17 00:00:00 2001 From: Ulyssa Date: Fri, 30 Jun 2023 21:18:08 -0700 Subject: [PATCH] Remove trailing newlines in body (#125) --- src/windows/room/chat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows/room/chat.rs b/src/windows/room/chat.rs index 581df65..c04bc4e 100644 --- a/src/windows/room/chat.rs +++ b/src/windows/room/chat.rs @@ -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(