Various UI improvements

This commit is contained in:
Ilya Laktyushin
2020-12-25 20:16:12 +04:00
parent 1f23769a5b
commit 5459c357d4
28 changed files with 538 additions and 61 deletions

View File

@@ -144,7 +144,7 @@ public final class TelegramRootController: NavigationController {
rootTabController.setControllers(controllers, selectedIndex: nil)
}
public func openChatsController(activateSearch: Bool) {
public func openChatsController(activateSearch: Bool, filter: ChatListSearchFilter = .chats, query: String? = nil) {
guard let rootTabController = self.rootTabController else {
return
}
@@ -158,7 +158,7 @@ public final class TelegramRootController: NavigationController {
}
if activateSearch {
self.chatListController?.activateSearch()
self.chatListController?.activateSearch(filter: filter, query: query)
}
}