mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Refactor string generation
This commit is contained in:
@@ -11,7 +11,7 @@ private func timeoutValue(strings: PresentationStrings, slowmodeState: ChatSlowm
|
||||
case let .timestamp(untilTimestamp):
|
||||
let timestamp = Int32(Date().timeIntervalSince1970)
|
||||
let seconds = max(0, untilTimestamp - timestamp)
|
||||
return strings.Chat_SlowmodeTooltip(stringForDuration(seconds)).0
|
||||
return strings.Chat_SlowmodeTooltip(stringForDuration(seconds)).string
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user