Various improvements

This commit is contained in:
Ilya Laktyushin
2022-05-03 20:04:31 +04:00
parent 7063b84dcf
commit 93b84ebf24
47 changed files with 2320 additions and 288 deletions

View File

@@ -13,6 +13,7 @@ import ContextUI
import ItemListUI
import SearchUI
import ChatListSearchItemHeader
import PremiumUI
public enum ChatListNodeMode {
case chatList
@@ -840,14 +841,16 @@ public final class ChatListNode: ListView {
switch result {
case .done:
break
case let .limitExceeded(maxCount):
let text: String
if chatListFilter != nil {
text = strongSelf.currentState.presentationData.strings.DialogList_UnknownPinLimitError
} else {
text = strongSelf.currentState.presentationData.strings.DialogList_PinLimitError("\(maxCount)").string
}
strongSelf.presentAlert?(text)
case .limitExceeded:
let controller = LimitScreen(context: strongSelf.context, subject: .pins)
strongSelf.present?(controller)
// let text: String
// if chatListFilter != nil {
// text = strongSelf.currentState.presentationData.strings.DialogList_UnknownPinLimitError
// } else {
// text = strongSelf.currentState.presentationData.strings.DialogList_PinLimitError("\(maxCount)").string
// }
// strongSelf.presentAlert?(text)
}
}
})