From f592a26b0095b312bb4ddd5b421aba014602ac19 Mon Sep 17 00:00:00 2001 From: spaced4ndy <8711996+spaced4ndy@users.noreply.github.com> Date: Tue, 20 Jun 2023 10:14:07 +0400 Subject: [PATCH] ios, android: increase disappearing message interval limit (#2599) * ios, android: increase disappearing message interval limit * Apply suggestions from code review Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> --------- Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> --- .../java/chat/simplex/app/views/helpers/CustomTimePicker.kt | 4 ++-- apps/ios/Shared/Views/Helpers/CustomTimePicker.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/android/app/src/main/java/chat/simplex/app/views/helpers/CustomTimePicker.kt b/apps/android/app/src/main/java/chat/simplex/app/views/helpers/CustomTimePicker.kt index 335d633ae..97a72dfe6 100644 --- a/apps/android/app/src/main/java/chat/simplex/app/views/helpers/CustomTimePicker.kt +++ b/apps/android/app/src/main/java/chat/simplex/app/views/helpers/CustomTimePicker.kt @@ -123,8 +123,8 @@ data class TimeUnitLimits( CustomTimeUnit.Minute -> TimeUnitLimits(CustomTimeUnit.Minute, maxValue = 120) CustomTimeUnit.Hour -> TimeUnitLimits(CustomTimeUnit.Hour, maxValue = 72) CustomTimeUnit.Day -> TimeUnitLimits(CustomTimeUnit.Day, maxValue = 60) - CustomTimeUnit.Week -> TimeUnitLimits(CustomTimeUnit.Week, maxValue = 12) // TODO in 5.2 - 54 - CustomTimeUnit.Month -> TimeUnitLimits(CustomTimeUnit.Month, maxValue = 3) // TODO in 5.2 - 12 + CustomTimeUnit.Week -> TimeUnitLimits(CustomTimeUnit.Week, maxValue = 52) + CustomTimeUnit.Month -> TimeUnitLimits(CustomTimeUnit.Month, maxValue = 12) } } diff --git a/apps/ios/Shared/Views/Helpers/CustomTimePicker.swift b/apps/ios/Shared/Views/Helpers/CustomTimePicker.swift index 03bb9f10c..09aae1cb1 100644 --- a/apps/ios/Shared/Views/Helpers/CustomTimePicker.swift +++ b/apps/ios/Shared/Views/Helpers/CustomTimePicker.swift @@ -26,8 +26,8 @@ struct CustomTimePicker: View { case .minute: return TimeUnitLimits.init(timeUnit: .minute, maxValue: 120) case .hour: return TimeUnitLimits.init(timeUnit: .hour, maxValue: 72) case .day: return TimeUnitLimits.init(timeUnit: .day, maxValue: 60) - case .week: return TimeUnitLimits.init(timeUnit: .week, maxValue: 12) // TODO in 5.2 - 54 - case .month: return TimeUnitLimits.init(timeUnit: .month, maxValue: 3) // TODO in 5.2 - 12 + case .week: return TimeUnitLimits.init(timeUnit: .week, maxValue: 52) + case .month: return TimeUnitLimits.init(timeUnit: .month, maxValue: 12) } }