Various improvements

This commit is contained in:
Ilya Laktyushin
2025-08-01 23:25:24 +02:00
parent cefc76d4fc
commit 72c58813a8
32 changed files with 437 additions and 273 deletions

View File

@@ -1866,7 +1866,7 @@ private final class ChatSendStarsScreenComponent: Component {
switch component.initialData.subjectInitialData {
case let .react(reactData):
if let currentSentAmount = reactData.currentSentAmount {
text = environment.strings.SendStarReactions_TextSentStars(Int32(currentSentAmount))
text = environment.strings.SendStarReactions_TextSentStars(Int32(clamping: currentSentAmount))
} else {
text = environment.strings.SendStarReactions_TextGeneric(reactData.peer.debugDisplayTitle).string
}