mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Video avatar fixes
This commit is contained in:
parent
071a3bdef1
commit
ef782bbda3
2 changed files with 4 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -43,8 +43,6 @@ private struct PeerAvatarImageGalleryThumbnailItem: GalleryThumbnailItem {
|
|||
}
|
||||
|
||||
class PeerAvatarImageGalleryItem: GalleryItem {
|
||||
|
||||
|
||||
var id: AnyHashable {
|
||||
return self.entry.id
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue