mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-12-26 13:38:51 +00:00
Give thumbnail url
This commit is contained in:
parent
d421b1d3ba
commit
17e50ed59b
@ -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(),
|
||||
})
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user