Tell when there is no emote

This commit is contained in:
Leon Grünewald 2024-12-11 22:19:42 +01:00
parent 54b5ba5c5f
commit ecb599094f

View file

@ -40,7 +40,7 @@ impl From<ScoredChatMessage> for Markup {
fn from(item: ScoredChatMessage) -> Markup { fn from(item: ScoredChatMessage) -> Markup {
if let Some(mime_type) = &item.chat_message.mime_type { if let Some(mime_type) = &item.chat_message.mime_type {
let message_file = item.chat_message.file.expect("No sticker file"); 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; let message_date = item.last_used;
match mime_type.as_str() { match mime_type.as_str() {
"image/webp" => { "image/webp" => {