diff --git a/fractal-gtk/src/app.rs b/fractal-gtk/src/app.rs index a115bbf6..362be437 100644 --- a/fractal-gtk/src/app.rs +++ b/fractal-gtk/src/app.rs @@ -1242,8 +1242,8 @@ impl AppOp { id: None, }; - if msg.starts_with("/me") { - m.body = msg.replace("/me ", ""); + if msg.starts_with("/me ") { + m.body = msg.trim_left_matches("/me ").to_owned(); m.mtype = strn!("m.emote"); };