Commit 745f547904
Unregistered key
Layout: unified · split
src/message/mod.rs +1 −14
| @@ -573,20 +573,7 @@ fn body_cow_content(content: &RoomMessageEventContent) -> Cow<'_, str> { | ||
| 573 | 573 | MessageType::Video(content) => { |
| 574 | 574 | display_file_to_text!(Video, content); |
| 575 | 575 | }, |
| 576 | _ => { | |
| 577 | match content.msgtype() { | |
| 578 | // Just show the body text for the special Element messages. | |
| 579 | "nic.custom.confetti" | | |
| 580 | "nic.custom.fireworks" | | |
| 581 | "io.element.effect.hearts" | | |
| 582 | "io.element.effect.rainfall" | | |
| 583 | "io.element.effect.snowfall" | | |
| 584 | "io.element.effects.space_invaders" => content.body(), | |
| 585 | other => { | |
| 586 | return Cow::Owned(format!("[Unknown message type: {other:?}]")); | |
| 587 | }, | |
| 588 | } | |
| 589 | }, | |
| 576 | _ => content.body(), | |
| 590 | 577 | }; |
| 591 | 578 | |
| 592 | 579 | Cow::Borrowed(s) |