mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
24 lines
743 B
Swift
24 lines
743 B
Swift
import Foundation
|
|
import UIKit
|
|
import Postbox
|
|
import Display
|
|
import TelegramCore
|
|
|
|
public enum ChatListControllerLocation {
|
|
case chatList(groupId: EngineChatList.Group)
|
|
case forum(peerId: PeerId)
|
|
}
|
|
|
|
public protocol ChatListController: ViewController {
|
|
var context: AccountContext { get }
|
|
var lockViewFrame: CGRect? { get }
|
|
|
|
var isSearchActive: Bool { get }
|
|
func activateSearch(filter: ChatListSearchFilter, query: String?)
|
|
func deactivateSearch(animated: Bool)
|
|
func activateCompose()
|
|
func maybeAskForPeerChatRemoval(peer: EngineRenderedPeer, joined: Bool, deleteGloballyIfPossible: Bool, completion: @escaping (Bool) -> Void, removed: @escaping () -> Void)
|
|
|
|
func playSignUpCompletedAnimation()
|
|
}
|