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" => {