diff --git a/src/api_data/conversation_message_api.rs b/src/api_data/conversation_message_api.rs index 14eed26..b914b92 100644 --- a/src/api_data/conversation_message_api.rs +++ b/src/api_data/conversation_message_api.rs @@ -39,7 +39,7 @@ impl ConversationMessageAPI { url: user_data_url(&file.path.clone()), size: file.size, name: file.name.clone(), - thumbnail: file.thumbnail.clone(), + thumbnail: file.thumbnail.as_ref().map(|u|user_data_url(u)), r#type: file.r#type.clone(), }) };