mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Don't allow duplicated selection
This commit is contained in:
parent
6c93d3bd5d
commit
de1c00dc2b
@ -76,6 +76,10 @@
|
||||
NSString *identifier = item.uniqueIdentifier;
|
||||
if (selected)
|
||||
{
|
||||
if ([_selectedIdentifiers containsObject:identifier]) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (_selectedIdentifiers.count >= _selectionLimit) {
|
||||
if (_selectionLimitExceeded) {
|
||||
_selectionLimitExceeded();
|
||||
|
Loading…
x
Reference in New Issue
Block a user