mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Shared media improvements
This commit is contained in:
@@ -1709,6 +1709,18 @@ final class PeerInfoVisualMediaPaneNode: ASDisplayNode, PeerInfoPaneNode, UIScro
|
||||
}
|
||||
}
|
||||
strongSelf.itemInteraction.hiddenMedia = hiddenMedia
|
||||
|
||||
if let items = strongSelf.items {
|
||||
for item in items.items {
|
||||
if let item = item as? VisualMediaItem {
|
||||
if hiddenMedia[item.message.id] != nil {
|
||||
strongSelf.itemGrid.ensureItemVisible(index: item.index)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
strongSelf.updateHiddenMedia()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user