From ecb599094ff93551c6e9e16c6d0e2f46defe8350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20Gr=C3=BCnewald?= Date: Wed, 11 Dec 2024 22:19:42 +0100 Subject: [PATCH] Tell when there is no emote --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index b9dad17..1cb2381 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,7 +40,7 @@ impl From for Markup { fn from(item: ScoredChatMessage) -> Markup { if let Some(mime_type) = &item.chat_message.mime_type { let message_file = item.chat_message.file.expect("No sticker file"); - let message_emoji = item.chat_message.sticker_emoji.expect("No sticker emoji"); + let message_emoji = item.chat_message.sticker_emoji.unwrap_or(String::from("No emote")); let message_date = item.last_used; match mime_type.as_str() { "image/webp" => {