mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Voice Chat UI fixes
This commit is contained in:
@@ -88,7 +88,11 @@ public func unmuteIntervalString(strings: PresentationStrings, value: Int32) ->
|
||||
public func callDurationString(strings: PresentationStrings, value: Int32) -> String {
|
||||
if value < 60 {
|
||||
return strings.Call_Seconds(max(1, value))
|
||||
} else {
|
||||
} else if value < 60 * 60 {
|
||||
return strings.Call_Minutes(max(1, value / 60))
|
||||
} else if value < 60 * 60 * 24 {
|
||||
return strings.Call_Hours(max(1, value / (60 * 60)))
|
||||
} else {
|
||||
return strings.Call_Days(max(1, value / (60 * 60 * 24)))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user