Various fixes

This commit is contained in:
Ilya Laktyushin 2024-09-27 16:58:49 +04:00
parent 4f3126e650
commit 856aeb6781
3 changed files with 4 additions and 3 deletions

View File

@ -468,7 +468,7 @@ public final class ChatEntityKeyboardInputNode: ChatInputNode {
|> distinctUntilChanged
}
public init(context: AccountContext, currentInputData: InputData, updatedInputData: Signal<InputData, NoError>, defaultToEmojiTab: Bool, opaqueTopPanelBackground: Bool = false, useOpaqueTheme: Bool = false, interaction: ChatEntityKeyboardInputNode.Interaction?, chatPeerId: PeerId?, stateContext: StateContext?) {
public init(context: AccountContext, currentInputData: InputData, updatedInputData: Signal<InputData, NoError>, defaultToEmojiTab: Bool, opaqueTopPanelBackground: Bool = false, useOpaqueTheme: Bool = false, interaction: ChatEntityKeyboardInputNode.Interaction?, chatPeerId: PeerId?, stateContext: StateContext?, forceHasPremium: Bool = false) {
self.context = context
self.currentInputData = currentInputData
self.defaultToEmojiTab = defaultToEmojiTab
@ -689,7 +689,7 @@ public final class ChatEntityKeyboardInputNode: ChatInputNode {
}
}
if file.isPremiumEmoji && !hasPremium && groupId != AnyHashable("peerSpecific") {
if file.isPremiumEmoji && !hasPremium && groupId != AnyHashable("peerSpecific") && !forceHasPremium {
var animateInAsReplacement = false
if let currentUndoOverlayController = strongSelf.currentUndoOverlayController {
currentUndoOverlayController.dismissWithCommitActionAndReplacementAnimation()

View File

@ -914,7 +914,8 @@ final class GiftSetupScreenComponent: Component {
useOpaqueTheme: true,
interaction: self.inputMediaInteraction,
chatPeerId: nil,
stateContext: self.inputMediaNodeStateContext
stateContext: self.inputMediaNodeStateContext,
forceHasPremium: true
)
inputMediaNode.clipsToBounds = true