mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
UI fixes
This commit is contained in:
@@ -1708,8 +1708,10 @@ final class ChatListSearchListPaneNode: ASDisplayNode, ChatListSearchPaneNode {
|
||||
})
|
||||
})
|
||||
strongSelf.currentEntries = newEntries
|
||||
if key == .downloads, !firstTime, !"".isEmpty {
|
||||
transition.animated = true
|
||||
if strongSelf.key == .downloads {
|
||||
if !firstTime, !"".isEmpty {
|
||||
transition.animated = true
|
||||
}
|
||||
}
|
||||
strongSelf.enqueueTransition(transition, firstTime: firstTime)
|
||||
|
||||
@@ -1959,9 +1961,6 @@ final class ChatListSearchListPaneNode: ASDisplayNode, ChatListSearchPaneNode {
|
||||
self.recentDisposable.dispose()
|
||||
self.updatedRecentPeersDisposable.dispose()
|
||||
self.deletedMessagesDisposable?.dispose()
|
||||
if self.key == .downloads {
|
||||
print("downloads")
|
||||
}
|
||||
}
|
||||
|
||||
override func didLoad() {
|
||||
@@ -2416,6 +2415,11 @@ final class ChatListSearchListPaneNode: ASDisplayNode, ChatListSearchPaneNode {
|
||||
options.insert(.AnimateInsertion)
|
||||
}
|
||||
|
||||
if self.key == .downloads {
|
||||
options.insert(.PreferSynchronousDrawing)
|
||||
options.insert(.PreferSynchronousResourceLoading)
|
||||
}
|
||||
|
||||
self.listNode.transaction(deleteIndices: transition.deletions, insertIndicesAndItems: transition.insertions, updateIndicesAndItems: transition.updates, options: options, updateSizeAndInsets: nil, updateOpaqueState: nil, completion: { [weak self] _ in
|
||||
if let strongSelf = self {
|
||||
let searchOptions = strongSelf.searchOptionsValue
|
||||
|
||||
Reference in New Issue
Block a user