mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-26 07:19:22 +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()),
|
url: user_data_url(&file.path.clone()),
|
||||||
size: file.size,
|
size: file.size,
|
||||||
name: file.name.clone(),
|
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(),
|
r#type: file.r#type.clone(),
|
||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user