Merge commit '4e55e3aab0902379e2fa292582845bafdc76306a'

# Conflicts:
#	submodules/TelegramUI/Components/TextLoadingEffect/Sources/TextLoadingEffect.swift
This commit is contained in:
Isaac
2024-05-23 23:50:45 +04:00
94 changed files with 4226 additions and 885 deletions

View File

@@ -987,7 +987,11 @@ public protocol ChatController: ViewController {
var visibleContextController: ViewController? { get }
var searching: ValuePromise<Bool> { get }
var alwaysShowSearchResultsAsList: Bool { get set }
var includeSavedPeersInSearchResults: Bool { get set }
var showListEmptyResults: Bool { get set }
func updatePresentationMode(_ mode: ChatControllerPresentationMode)
func beginMessageSearch(_ query: String)
@@ -1103,6 +1107,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 {
@@ -1116,6 +1121,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 {