2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Don't show subscribe button with blocked premium.

This commit is contained in:
John Preston
2022-06-07 11:41:44 +04:00
parent 4570da5767
commit 00bea8d1ee
2 changed files with 14 additions and 5 deletions

View File

@@ -890,7 +890,7 @@ void FileSizeLimitBox(
const auto defaultGb = (defaultLimit + 999) / 2000;
const auto premiumGb = (premiumLimit + 999) / 2000;
const auto current = fileSizeBytes
const auto current = (fileSizeBytes && premiumPossible)
? std::clamp(
float64(((fileSizeBytes / uint64(1024 * 1024)) + 999) / 1000),
defaultGb,