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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user