Add OnlyZaps Mode

Changelog-Added: Add OnlyZaps mode: disable reactions, only zaps!
This commit is contained in:
William Casarin
2023-04-20 13:40:37 -07:00
parent 209f3e8759
commit ac82f1bc09
16 changed files with 107 additions and 75 deletions

View File

@@ -202,9 +202,9 @@ class UserSettingsStore: ObservableObject {
}
}
@Published var hide_reactions: Bool {
@Published var onlyzaps_mode: Bool {
didSet {
UserDefaults.standard.set(hide_reactions, forKey: "hide_reactions")
UserDefaults.standard.set(onlyzaps_mode, forKey: "onlyzaps_mode")
}
}
@@ -302,7 +302,7 @@ class UserSettingsStore: ObservableObject {
disable_animation = should_disable_image_animation()
auto_translate = UserDefaults.standard.object(forKey: "auto_translate") as? Bool ?? true
show_only_preferred_languages = UserDefaults.standard.object(forKey: "show_only_preferred_languages") as? Bool ?? false
hide_reactions = UserDefaults.standard.object(forKey: "hide_reactions") as? Bool ?? false
onlyzaps_mode = UserDefaults.standard.object(forKey: "hide_reactions") as? Bool ?? false
// Note from @tyiu:
// Default translation service is disabled by default for now until we gain some confidence that it is working well in production.