mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Context UI improvements
This commit is contained in:
@@ -119,7 +119,9 @@ public func shortTimeIntervalString(strings: PresentationStrings, value: Int32)
|
||||
}
|
||||
|
||||
public func muteForIntervalString(strings: PresentationStrings, value: Int32) -> String {
|
||||
if value < 60 * 60 * 24 {
|
||||
if value < 60 * 60 {
|
||||
return strings.MuteFor_Minutes(max(1, value / (60)))
|
||||
} else if value < 60 * 60 * 24 {
|
||||
return strings.MuteFor_Hours(max(1, value / (60 * 60)))
|
||||
} else {
|
||||
return strings.MuteFor_Days(max(1, value / (60 * 60 * 24)))
|
||||
|
||||
Reference in New Issue
Block a user