mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix emoji input background
This commit is contained in:
parent
2828707a3e
commit
e938cecd37
@ -299,6 +299,7 @@ final class ComposePollScreenComponent: Component {
|
|||||||
updatedInputData: self.inputMediaNodeDataPromise.get(),
|
updatedInputData: self.inputMediaNodeDataPromise.get(),
|
||||||
defaultToEmojiTab: true,
|
defaultToEmojiTab: true,
|
||||||
opaqueTopPanelBackground: false,
|
opaqueTopPanelBackground: false,
|
||||||
|
useOpaqueTheme: true,
|
||||||
interaction: self.inputMediaInteraction,
|
interaction: self.inputMediaInteraction,
|
||||||
chatPeerId: nil,
|
chatPeerId: nil,
|
||||||
stateContext: self.inputMediaNodeStateContext
|
stateContext: self.inputMediaNodeStateContext
|
||||||
|
@ -345,6 +345,7 @@ public final class ChatEntityKeyboardInputNode: ChatInputNode {
|
|||||||
private var inputDataDisposable: Disposable?
|
private var inputDataDisposable: Disposable?
|
||||||
private var hasRecentGifsDisposable: Disposable?
|
private var hasRecentGifsDisposable: Disposable?
|
||||||
private let opaqueTopPanelBackground: Bool
|
private let opaqueTopPanelBackground: Bool
|
||||||
|
private let useOpaqueTheme: Bool
|
||||||
|
|
||||||
private struct EmojiSearchResult {
|
private struct EmojiSearchResult {
|
||||||
var groups: [EmojiPagerContentComponent.ItemGroup]
|
var groups: [EmojiPagerContentComponent.ItemGroup]
|
||||||
@ -451,11 +452,12 @@ public final class ChatEntityKeyboardInputNode: ChatInputNode {
|
|||||||
|> distinctUntilChanged
|
|> distinctUntilChanged
|
||||||
}
|
}
|
||||||
|
|
||||||
public init(context: AccountContext, currentInputData: InputData, updatedInputData: Signal<InputData, NoError>, defaultToEmojiTab: Bool, opaqueTopPanelBackground: 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?) {
|
||||||
self.context = context
|
self.context = context
|
||||||
self.currentInputData = currentInputData
|
self.currentInputData = currentInputData
|
||||||
self.defaultToEmojiTab = defaultToEmojiTab
|
self.defaultToEmojiTab = defaultToEmojiTab
|
||||||
self.opaqueTopPanelBackground = opaqueTopPanelBackground
|
self.opaqueTopPanelBackground = opaqueTopPanelBackground
|
||||||
|
self.useOpaqueTheme = useOpaqueTheme
|
||||||
self.stateContext = stateContext
|
self.stateContext = stateContext
|
||||||
|
|
||||||
self.interaction = interaction
|
self.interaction = interaction
|
||||||
@ -1164,7 +1166,7 @@ public final class ChatEntityKeyboardInputNode: ChatInputNode {
|
|||||||
externalBackground: nil,
|
externalBackground: nil,
|
||||||
externalExpansionView: nil,
|
externalExpansionView: nil,
|
||||||
customContentView: nil,
|
customContentView: nil,
|
||||||
useOpaqueTheme: false,
|
useOpaqueTheme: self.useOpaqueTheme,
|
||||||
hideBackground: false,
|
hideBackground: false,
|
||||||
stateContext: self.stateContext?.emojiState,
|
stateContext: self.stateContext?.emojiState,
|
||||||
addImage: nil
|
addImage: nil
|
||||||
@ -1508,7 +1510,7 @@ public final class ChatEntityKeyboardInputNode: ChatInputNode {
|
|||||||
externalBackground: nil,
|
externalBackground: nil,
|
||||||
externalExpansionView: nil,
|
externalExpansionView: nil,
|
||||||
customContentView: nil,
|
customContentView: nil,
|
||||||
useOpaqueTheme: false,
|
useOpaqueTheme: self.useOpaqueTheme,
|
||||||
hideBackground: false,
|
hideBackground: false,
|
||||||
stateContext: nil,
|
stateContext: nil,
|
||||||
addImage: nil
|
addImage: nil
|
||||||
|
@ -131,11 +131,6 @@ extension ChatControllerImpl {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if "".isEmpty {
|
|
||||||
self.push(RecentActionsSettingsSheet(context: self.context, adminPeers: authors.map(EnginePeer.init), completion: { _ in }))
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
self.navigationActionDisposable.set((combineLatest(authors.map { author in
|
self.navigationActionDisposable.set((combineLatest(authors.map { author in
|
||||||
self.context.engine.peers.fetchChannelParticipant(peerId: peerId, participantId: author.id)
|
self.context.engine.peers.fetchChannelParticipant(peerId: peerId, participantId: author.id)
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user