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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user