Skip to content

Commit 1d1ea44

Browse files
committed
Various fixes
1 parent 9d7d4bd commit 1d1ea44

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

submodules/TelegramUI/Components/ChatEntityKeyboardInputNode/Sources/ChatEntityKeyboardInputNode.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ public final class ChatEntityKeyboardInputNode: ChatInputNode {
468468
|> distinctUntilChanged
469469
}
470470

471-
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?) {
471+
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) {
472472
self.context = context
473473
self.currentInputData = currentInputData
474474
self.defaultToEmojiTab = defaultToEmojiTab
@@ -689,7 +689,7 @@ public final class ChatEntityKeyboardInputNode: ChatInputNode {
689689
}
690690
}
691691

692-
if file.isPremiumEmoji && !hasPremium && groupId != AnyHashable("peerSpecific") {
692+
if file.isPremiumEmoji && !hasPremium && groupId != AnyHashable("peerSpecific") && !forceHasPremium {
693693
var animateInAsReplacement = false
694694
if let currentUndoOverlayController = strongSelf.currentUndoOverlayController {
695695
currentUndoOverlayController.dismissWithCommitActionAndReplacementAnimation()

submodules/TelegramUI/Components/Gifts/GiftSetupScreen/Sources/GiftSetupScreen.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,8 @@ final class GiftSetupScreenComponent: Component {
914914
useOpaqueTheme: true,
915915
interaction: self.inputMediaInteraction,
916916
chatPeerId: nil,
917-
stateContext: self.inputMediaNodeStateContext
917+
stateContext: self.inputMediaNodeStateContext,
918+
forceHasPremium: true
918919
)
919920
inputMediaNode.clipsToBounds = true
920921

Binary file not shown.

0 commit comments

Comments
 (0)