mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Various improvements
This commit is contained in:
parent
6e42f96c19
commit
acf905a098
24 changed files with 772 additions and 47 deletions
|
|
@ -83,7 +83,11 @@ public final class ChatMessageLiveLocationTimerNode: ASDisplayNode {
|
|||
let intRemaining = Int32(remaining)
|
||||
if intRemaining > 60 * 60 {
|
||||
let hours = Int32(round(remaining / (60.0 * 60.0)))
|
||||
string = strings.Map_LiveLocationShortHour("\(hours)").string
|
||||
if hours > 99 {
|
||||
string = "99+"
|
||||
} else {
|
||||
string = strings.Map_LiveLocationShortHour("\(hours)").string
|
||||
}
|
||||
} else {
|
||||
let minutes = Int32(round(remaining / (60.0)))
|
||||
string = "\(minutes)"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue