1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 13:29:21 +00:00

Give thumbnail url

This commit is contained in:
Pierre HUBERT 2021-03-05 13:58:15 +01:00
parent d421b1d3ba
commit 17e50ed59b

View File

@ -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(),
})
};