mirror of
https://github.com/ars3niy/tdlib-purple
synced 2025-08-31 05:55:08 +00:00
Ask about downloading files above configured limit
This commit is contained in:
@@ -739,7 +739,7 @@ void transmitMessage(int64_t chatId, const char *message, TdTransceiver &transce
|
||||
}
|
||||
}
|
||||
|
||||
unsigned getFileSizeKb(const td::td_api::file &file)
|
||||
unsigned getFileSize(const td::td_api::file &file)
|
||||
{
|
||||
int32_t size = file.size_;
|
||||
if (size == 0)
|
||||
@@ -748,5 +748,10 @@ unsigned getFileSizeKb(const td::td_api::file &file)
|
||||
if (size <= 0)
|
||||
return 0;
|
||||
else
|
||||
return size/1024;
|
||||
return size;
|
||||
}
|
||||
|
||||
unsigned getFileSizeKb(const td::td_api::file &file)
|
||||
{
|
||||
return getFileSize(file)/1024;
|
||||
}
|
||||
|
Reference in New Issue
Block a user