mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various UI improvements
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user