mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Emoji and status improvements
This commit is contained in:
@@ -146,6 +146,16 @@ public func muteForIntervalString(strings: PresentationStrings, value: Int32) ->
|
||||
}
|
||||
}
|
||||
|
||||
public func setTimeoutForIntervalString(strings: PresentationStrings, value: Int32) -> String {
|
||||
if value < 60 * 60 {
|
||||
return strings.SetTimeoutFor_Minutes(max(1, value / (60)))
|
||||
} else if value < 60 * 60 * 24 {
|
||||
return strings.SetTimeoutFor_Hours(max(1, value / (60 * 60)))
|
||||
} else {
|
||||
return strings.SetTimeoutFor_Days(max(1, value / (60 * 60 * 24)))
|
||||
}
|
||||
}
|
||||
|
||||
public func mutedForTimeIntervalString(strings: PresentationStrings, value: Int32) -> String {
|
||||
if value < 60 * 60 {
|
||||
return strings.MutedForTime_Minutes(max(1, value / (60)))
|
||||
|
||||
Reference in New Issue
Block a user