mirror of
https://github.com/ars3niy/tdlib-purple
synced 2025-08-31 05:55:08 +00:00
Receive, and display as file:// links, all types of files
This commit is contained in:
@@ -755,3 +755,11 @@ unsigned getFileSizeKb(const td::td_api::file &file)
|
||||
{
|
||||
return getFileSize(file)/1024;
|
||||
}
|
||||
|
||||
std::string makeDocumentDescription(const td::td_api::voiceNote *document)
|
||||
{
|
||||
if (!document)
|
||||
// Unlikely error message not worth translating
|
||||
return "faulty voice note";
|
||||
return std::string(_("voice note")) + " [" + document->mime_type_ + "]";
|
||||
}
|
||||
|
Reference in New Issue
Block a user