From 745f547904de0c2cbd4c488eb374ab92ca80a12a Mon Sep 17 00:00:00 2001 From: vaw Date: Wed, 3 Sep 2025 05:02:21 +0000 Subject: [PATCH] Fall back to showing body for unknown message types (#496) --- src/message/mod.rs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/message/mod.rs b/src/message/mod.rs index 34f80b1..c3d144b 100644 --- a/src/message/mod.rs +++ b/src/message/mod.rs @@ -573,20 +573,7 @@ fn body_cow_content(content: &RoomMessageEventContent) -> Cow<'_, str> { MessageType::Video(content) => { display_file_to_text!(Video, content); }, - _ => { - match content.msgtype() { - // Just show the body text for the special Element messages. - "nic.custom.confetti" | - "nic.custom.fireworks" | - "io.element.effect.hearts" | - "io.element.effect.rainfall" | - "io.element.effect.snowfall" | - "io.element.effects.space_invaders" => content.body(), - other => { - return Cow::Owned(format!("[Unknown message type: {other:?}]")); - }, - } - }, + _ => content.body(), }; Cow::Borrowed(s)