Swiftgram/submodules/AccountContext/Sources/ChatListController.swift
2022-09-28 12:15:06 +02:00

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()
}