This commit is contained in:
wt
2026-07-30 20:07:51 +07:00
commit 92660a4ba0
228 changed files with 24496 additions and 0 deletions
@@ -0,0 +1,29 @@
import Foundation
enum EncryptionPreference: String, Codable, CaseIterable, Equatable, Hashable, Sendable {
case inheritGlobal
case enabled
case disabled
func resolved(globalEnabled: Bool) -> Bool {
switch self {
case .inheritGlobal:
return globalEnabled
case .enabled:
return true
case .disabled:
return false
}
}
var title: String {
switch self {
case .inheritGlobal:
return "Как в настройках"
case .enabled:
return "Всегда включено"
case .disabled:
return "Выключено для чата"
}
}
}