Skip to content

Commit

Permalink
Remove trailing newlines in body (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulyssa committed Jul 1, 2023
1 parent 7c39e88 commit 8d45398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/room/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8d45398

Please sign in to comment.