Various fixes

This commit is contained in:
Ilya Laktyushin
2023-08-08 22:10:43 +02:00
parent 29707a7264
commit d6923ba451
17 changed files with 172 additions and 120 deletions

View File

@@ -765,7 +765,7 @@ public final class MessageInputPanelComponent: Component {
}
}
if let maxLength = component.maxLength, maxLength - self.textFieldExternalState.textLength < 5 {
if let maxLength = component.maxLength, maxLength - self.textFieldExternalState.textLength < 5 && isEditing {
let remainingLength = max(-999, maxLength - self.textFieldExternalState.textLength)
let counterSize = self.counter.update(
transition: .immediate,

View File

@@ -277,7 +277,7 @@ final class StickersResultPanelComponent: Component {
guard let self, let component = self.component else {
return
}
let controller = component.context.sharedContext.makePremiumIntroController(context: component.context, source: .stickers, forceDark: false)
let controller = component.context.sharedContext.makePremiumIntroController(context: component.context, source: .stickers, forceDark: false, dismissed: nil)
component.present(controller)
}))
} else {