Autoscroll to auto-archive

This commit is contained in:
Ali
2020-07-02 17:26:16 +04:00
parent e055c689b8
commit a543f7003f
2 changed files with 4 additions and 3 deletions

View File

@@ -60,6 +60,7 @@ private enum PrivacyAndSecuritySection: Int32 {
public enum PrivacyAndSecurityEntryTag: ItemListItemTag {
case accountTimeout
case autoArchive
public func isEqual(to other: ItemListItemTag) -> Bool {
if let other = other as? PrivacyAndSecurityEntryTag, self == other {
@@ -333,7 +334,7 @@ private enum PrivacyAndSecurityEntry: ItemListNodeEntry {
case let .autoArchive(text, value):
return ItemListSwitchItem(presentationData: presentationData, title: text, value: value, sectionId: self.section, style: .blocks, updated: { value in
arguments.toggleArchiveAndMuteNonContacts(value)
})
}, tag: PrivacyAndSecurityEntryTag.autoArchive)
case let .autoArchiveInfo(text):
return ItemListTextItem(presentationData: presentationData, text: .plain(text), sectionId: self.section)
case let .accountHeader(theme, text):