2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +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

@@ -75,7 +75,7 @@ SendMediaReady PreparePeerPhoto(
MTP_int(dcId));
QString file, filename;
int32 filesize = 0;
int64 filesize = 0;
QByteArray data;
return SendMediaReady(

View File

@@ -41,7 +41,7 @@ SendMediaReady PrepareRingtoneDocument(
MTP_bytes(),
MTP_int(base::unixtime::now()),
MTP_string(filemime),
MTP_int(content.size()),
MTP_long(content.size()),
MTP_vector<MTPPhotoSize>(),
MTPVector<MTPVideoSize>(),
MTP_int(dcId),
@@ -191,8 +191,8 @@ void Ringtones::remove(DocumentId id) {
}
}
int Ringtones::maxSize() const {
return int(base::SafeRound(_session->account().appConfig().get<double>(
int64 Ringtones::maxSize() const {
return int64(base::SafeRound(_session->account().appConfig().get<double>(
"ringtone_size_max",
100 * 1024)));
}

View File

@@ -38,7 +38,7 @@ public:
[[nodiscard]] rpl::producer<QString> uploadFails() const;
[[nodiscard]] rpl::producer<DocumentId> uploadDones() const;
[[nodiscard]] int maxSize() const;
[[nodiscard]] int64 maxSize() const;
[[nodiscard]] int maxSavedCount() const;
[[nodiscard]] int maxDuration() const;