Tell when there is no emote
This commit is contained in:
parent
54b5ba5c5f
commit
ecb599094f
1 changed files with 1 additions and 1 deletions
|
@ -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" => {
|
||||||
|
|
Loading…
Reference in a new issue