mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various fixes
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user