mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Peer sound and message removal update
This commit is contained in:
@@ -38,6 +38,18 @@ public func presentationStringsFormattedNumber(_ count: Int32, _ groupingSeparat
|
||||
}
|
||||
}
|
||||
|
||||
public func dayIntervalString(strings: PresentationStrings, days: Int32) -> String {
|
||||
return strings.MessageTimer_Days(max(0, days))
|
||||
}
|
||||
|
||||
public func hoursIntervalString(strings: PresentationStrings, hours: Int32) -> String {
|
||||
return strings.MessageTimer_Hours(max(0, hours))
|
||||
}
|
||||
|
||||
public func minutesIntervalString(strings: PresentationStrings, minutes: Int32) -> String {
|
||||
return strings.MessageTimer_Minutes(max(0, minutes))
|
||||
}
|
||||
|
||||
public func timeIntervalString(strings: PresentationStrings, value: Int32, preferLowerValue: Bool = false) -> String {
|
||||
if preferLowerValue {
|
||||
if value <= 60 {
|
||||
|
||||
Reference in New Issue
Block a user