2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Update API scheme to layer 143.

This commit is contained in:
John Preston
2022-05-10 18:22:28 +04:00
parent dd05fb4d14
commit 6dedf7c63e
81 changed files with 595 additions and 458 deletions

View File

@@ -2731,7 +2731,7 @@ not_null<DocumentData*> Session::document(
const ImageWithLocation &videoThumbnail,
bool isPremiumSticker,
int32 dc,
int32 size) {
int64 size) {
const auto result = document(id);
documentApplyFields(
result,
@@ -2814,7 +2814,7 @@ DocumentData *Session::documentFromWeb(
ImageWithLocation{ .location = videoThumbnailLocation },
false, // isPremiumSticker
session().mainDcId(),
int32(0)); // data.vsize().v
int64(0)); // data.vsize().v
result->setWebLocation(WebFileLocation(
data.vurl().v,
data.vaccess_hash().v));
@@ -2837,7 +2837,7 @@ DocumentData *Session::documentFromWeb(
ImageWithLocation{ .location = videoThumbnailLocation },
false, // isPremiumSticker
session().mainDcId(),
int32(0)); // data.vsize().v
int64(0)); // data.vsize().v
result->setContentUrl(qs(data.vurl()));
return result;
}
@@ -2892,7 +2892,7 @@ void Session::documentApplyFields(
const ImageWithLocation &videoThumbnail,
bool isPremiumSticker,
int32 dc,
int32 size) {
int64 size) {
if (!date) {
return;
}