mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Hashtag search improvements
This commit is contained in:
@@ -52,7 +52,12 @@ func inputPanelForChatPresentationIntefaceState(_ chatPresentationInterfaceState
|
||||
currentPanel.interfaceInteraction = interfaceInteraction
|
||||
return (currentPanel, selectionPanel)
|
||||
} else {
|
||||
let panel = ChatTagSearchInputPanelNode(theme: chatPresentationInterfaceState.theme)
|
||||
var alwaysShowTotalMessagesCount = false
|
||||
if case let .customChatContents(contents) = chatPresentationInterfaceState.subject, case .hashTagSearch = contents.kind {
|
||||
alwaysShowTotalMessagesCount = true
|
||||
}
|
||||
|
||||
let panel = ChatTagSearchInputPanelNode(theme: chatPresentationInterfaceState.theme, alwaysShowTotalMessagesCount: alwaysShowTotalMessagesCount)
|
||||
panel.context = context
|
||||
panel.interfaceInteraction = interfaceInteraction
|
||||
return (panel, selectionPanel)
|
||||
@@ -403,6 +408,8 @@ func inputPanelForChatPresentationIntefaceState(_ chatPresentationInterfaceState
|
||||
|
||||
if case let .customChatContents(customChatContents) = chatPresentationInterfaceState.subject {
|
||||
switch customChatContents.kind {
|
||||
case .hashTagSearch:
|
||||
displayInputTextPanel = false
|
||||
case .quickReplyMessageInput, .businessLinkSetup:
|
||||
displayInputTextPanel = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user