mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Refactoring
This commit is contained in:
@@ -282,7 +282,7 @@ class WebSearchControllerNode: ASDisplayNode {
|
||||
|
||||
if !attachment {
|
||||
let previousRecentItems = Atomic<[WebSearchRecentQueryEntry]?>(value: nil)
|
||||
self.recentDisposable = (combineLatest(webSearchRecentQueries(postbox: self.context.account.postbox), self.webSearchInterfaceStatePromise.get())
|
||||
self.recentDisposable = (combineLatest(webSearchRecentQueries(engine: self.context.engine), self.webSearchInterfaceStatePromise.get())
|
||||
|> deliverOnMainQueue).start(next: { [weak self] queries, interfaceState in
|
||||
if let strongSelf = self {
|
||||
var entries: [WebSearchRecentQueryEntry] = []
|
||||
|
||||
Reference in New Issue
Block a user