mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Video avatar fixes
This commit is contained in:
@@ -285,8 +285,11 @@
|
||||
|
||||
for (TGMediaPickerCell *cell in [strongSelf->_collectionView visibleCells])
|
||||
{
|
||||
if ([cell.item isEqual:item.asset])
|
||||
if ([cell.item respondsToSelector:@selector(uniqueIdentifier)] && [[(id)cell.item uniqueIdentifier] isEqual:item.asset.uniqueIdentifier]) {
|
||||
return cell;
|
||||
} else if ([cell.item isEqual:item.asset.uniqueIdentifier]) {
|
||||
return cell;
|
||||
}
|
||||
}
|
||||
|
||||
return nil;
|
||||
|
||||
Reference in New Issue
Block a user