mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Store and restore drafts (#2898)
This commit is contained in:
@@ -44,6 +44,7 @@ final class AppSettings {
|
||||
|
||||
// Feature flags
|
||||
case publicSearchEnabled
|
||||
case draftRestoringEnabled
|
||||
}
|
||||
|
||||
private static var suiteName: String = InfoPlistReader.main.appGroupIdentifier
|
||||
@@ -268,6 +269,9 @@ final class AppSettings {
|
||||
|
||||
@UserPreference(key: UserDefaultsKeys.publicSearchEnabled, defaultValue: isDevelopmentBuild, storageType: .volatile)
|
||||
var publicSearchEnabled
|
||||
|
||||
@UserPreference(key: UserDefaultsKeys.draftRestoringEnabled, defaultValue: false, storageType: .userDefaults(store))
|
||||
var draftRestoringEnabled
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user