Merge commit '9e38b1736d4b7ddff2f0617a91ad5b8269da63a4'

This commit is contained in:
Ali
2022-05-28 18:26:27 +04:00
44 changed files with 3371 additions and 550 deletions

View File

@@ -845,15 +845,10 @@ public final class ChatListNode: ListView {
switch result {
case .done:
break
case let .limitExceeded(count, limit):
case let .limitExceeded(count, _):
if isPremium {
let text: String
if chatListFilter != nil {
text = strongSelf.currentState.presentationData.strings.DialogList_UnknownPinLimitError
} else {
text = strongSelf.currentState.presentationData.strings.DialogList_PinLimitError("\(limit)").string
}
strongSelf.presentAlert?(text)
let controller = PremiumLimitScreen(context: context, subject: .pins, count: Int32(count), action: {})
strongSelf.push?(controller)
} else {
var replaceImpl: ((ViewController) -> Void)?
let controller = PremiumLimitScreen(context: context, subject: .pins, count: Int32(count), action: {