Peer sound and message removal update

This commit is contained in:
Ali
2022-03-30 01:22:44 +04:00
parent 0e55dd7db7
commit 235302c7c4
63 changed files with 3906 additions and 1934 deletions

View File

@@ -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 {