mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Merge commit '9e38b1736d4b7ddff2f0617a91ad5b8269da63a4'
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user