Skip to content

Commit

Permalink
Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
laktyushin committed Sep 27, 2024
1 parent 9d7d4bd commit 1d1ea44
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Binary file modified submodules/TelegramUI/Resources/Animations/ChatListNoResults.tgs
Binary file not shown.

0 comments on commit 1d1ea44

Please sign in to comment.