Swiftgram/submodules/AccountContext/Sources/ChatListController.swift
2020-12-25 20:16:12 +04:00

16 lines
548 B
Swift

import Foundation
import UIKit
import Postbox
import Display
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: RenderedPeer, joined: Bool, deleteGloballyIfPossible: Bool, completion: @escaping (Bool) -> Void, removed: @escaping () -> Void)
}