Video avatar fixes

This commit is contained in:
Ilya Laktyushin
2020-06-26 06:41:44 +03:00
parent 019946f600
commit 33538b46b9
13 changed files with 99 additions and 34 deletions

View File

@@ -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;