Various improvements

This commit is contained in:
Ilya Laktyushin
2024-04-20 19:37:16 +04:00
parent 6e42f96c19
commit acf905a098
24 changed files with 772 additions and 47 deletions

View File

@@ -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)"