mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios
This commit is contained in:
@@ -51,7 +51,7 @@ func _internal_toggleItemPinned(postbox: Postbox, accountPeerId: PeerId, locatio
|
||||
}
|
||||
|
||||
let count = sameKind.count + additionalCount
|
||||
if count > limitCount {
|
||||
if count > limitCount, itemIds.firstIndex(of: itemId) == nil {
|
||||
return .limitExceeded(count: count, limit: limitCount)
|
||||
} else {
|
||||
if let index = itemIds.firstIndex(of: itemId) {
|
||||
|
||||
Reference in New Issue
Block a user