From 40cf96202dd942f4bd01f9a4c8a4225704762769 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 5 Sep 2024 14:11:41 +0400 Subject: [PATCH] Add 1.5 years account ttl value. --- Telegram/SourceFiles/boxes/self_destruction_box.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/boxes/self_destruction_box.cpp b/Telegram/SourceFiles/boxes/self_destruction_box.cpp index 0ab869ae5b..691a114ba6 100644 --- a/Telegram/SourceFiles/boxes/self_destruction_box.cpp +++ b/Telegram/SourceFiles/boxes/self_destruction_box.cpp @@ -23,7 +23,7 @@ using Type = SelfDestructionBox::Type; [[nodiscard]] std::vector Values(Type type) { switch (type) { - case Type::Account: return { 30, 90, 180, 365 }; + case Type::Account: return { 30, 90, 180, 365, 548 }; case Type::Sessions: return { 7, 30, 90, 180, 365 }; } Unexpected("SelfDestructionBox::Type in Values."); @@ -113,8 +113,8 @@ void SelfDestructionBox::showContent() { QString SelfDestructionBox::DaysLabel(int days) { return !days ? QString() - : (days > 364) - ? tr::lng_years(tr::now, lt_count, days / 365) + //: (days > 364) + //? tr::lng_years(tr::now, lt_count, days / 365) : (days > 25) ? tr::lng_months(tr::now, lt_count, std::max(days / 30, 1)) : tr::lng_weeks(tr::now, lt_count, std::max(days / 7, 1));