Various Fixes

This commit is contained in:
Ilya Laktyushin
2022-03-21 17:47:19 +04:00
parent 7d523c4ef0
commit 8d4a729348
2 changed files with 4 additions and 5 deletions

View File

@@ -247,7 +247,6 @@ public final class MediaPickerScreen: ViewController, AttachmentContainable {
self.gridNode.visibleContentOffsetChanged = { [weak self] _ in
self?.updateNavigation(transition: .immediate)
self?.updateScrollingArea()
}
self.hiddenMediaDisposable = (self.hiddenMediaId.get()
@@ -405,14 +404,14 @@ public final class MediaPickerScreen: ViewController, AttachmentContainable {
guard let (layout, _) = self.validLayout else {
return
}
var tag: Int32?
self.gridNode.forEachItemNode { itemNode in
if let itemNode = itemNode as? MediaPickerGridItemNode {
tag = itemNode.tag
}
}
let dateString = tag.flatMap { self.scrollerTextForTag(tag: $0) }
if self.currentScrollingTag != tag {
self.currentScrollingTag = tag
@@ -420,7 +419,7 @@ public final class MediaPickerScreen: ViewController, AttachmentContainable {
self.scrollingArea.feedbackTap()
}
}
self.scrollingArea.update(
containerSize: layout.size,
containerInsets: self.gridNode.gridLayout.insets,