Video avatar fixes

This commit is contained in:
Ilya Laktyushin 2020-07-17 00:57:12 +03:00
parent 071a3bdef1
commit ef782bbda3
2 changed files with 4 additions and 2 deletions

View File

@ -343,6 +343,10 @@ public final class GalleryPagerNode: ASDisplayNode, UIScrollViewDelegate, UIGest
}
self.transaction(GalleryPagerTransaction(deleteItems: deleteItems, insertItems: insertItems, updateItems: updateItems, focusOnItem: centralItemIndex, synchronous: synchronous))
if self.updateOnReplacement {
self.items = items
}
}
public func transaction(_ transaction: GalleryPagerTransaction) {

View File

@ -43,8 +43,6 @@ private struct PeerAvatarImageGalleryThumbnailItem: GalleryThumbnailItem {
}
class PeerAvatarImageGalleryItem: GalleryItem {
var id: AnyHashable {
return self.entry.id
}