Hashtag search improvements

This commit is contained in:
Ilya Laktyushin
2024-05-22 14:04:37 +04:00
parent 7c7456de4b
commit 464eb8625f
53 changed files with 2049 additions and 469 deletions

View File

@@ -986,7 +986,10 @@ public protocol ChatController: ViewController {
var visibleContextController: ViewController? { get }
var searching: ValuePromise<Bool> { get }
var alwaysShowSearchResultsAsList: Bool { get set }
var includeSavedPeersInSearchResults: Bool { get set }
func updatePresentationMode(_ mode: ChatControllerPresentationMode)
func beginMessageSearch(_ query: String)
@@ -1102,6 +1105,7 @@ public enum ChatQuickReplyShortcutType {
public enum ChatCustomContentsKind: Equatable {
case quickReplyMessageInput(shortcut: String, shortcutType: ChatQuickReplyShortcutType)
case businessLinkSetup(link: TelegramBusinessChatLinks.Link)
case hashTagSearch
}
public protocol ChatCustomContentsProtocol: AnyObject {
@@ -1115,6 +1119,11 @@ public protocol ChatCustomContentsProtocol: AnyObject {
func quickReplyUpdateShortcut(value: String)
func businessLinkUpdate(message: String, entities: [MessageTextEntity], title: String?)
func loadMore()
func hashtagSearchUpdate(query: String)
var hashtagSearchResultsUpdate: ((SearchMessagesResult, SearchMessagesState)) -> Void { get set }
}
public enum ChatHistoryListDisplayHeaders {