mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 19:44:05 +00:00
updated test for hidden avatars in invites
This commit is contained in:
+14
-9
@@ -32,21 +32,26 @@ struct AdvancedSettingsScreen: View {
|
||||
.onChange(of: context.optimizeMediaUploads) {
|
||||
context.send(viewAction: .optimizeMediaUploadsChanged)
|
||||
}
|
||||
|
||||
// TODO: Waiting for designs and copies
|
||||
ListRow(label: .plain(title: "hide avatars",
|
||||
description: ""),
|
||||
kind: .toggle($context.hideInviteAvatars))
|
||||
|
||||
ListRow(label: .plain(title: "hide media",
|
||||
description: ""),
|
||||
kind: .toggle($context.hideTimelineMedia))
|
||||
}
|
||||
|
||||
moderationAndSafetySection
|
||||
}
|
||||
.compoundList()
|
||||
.navigationTitle(L10n.commonAdvancedSettings)
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
}
|
||||
|
||||
private var moderationAndSafetySection: some View {
|
||||
Section {
|
||||
ListRow(label: .plain(title: L10n.screenAdvancedSettingsHideTimelineMediaToggleTitle),
|
||||
kind: .toggle($context.hideTimelineMedia))
|
||||
ListRow(label: .plain(title: L10n.screenAdvancedSettingsHideInviteAvatarsToggleTitle),
|
||||
kind: .toggle($context.hideInviteAvatars))
|
||||
} header: {
|
||||
Text(L10n.screenAdvancedSettingsModerationAndSafetySectionTitle)
|
||||
.compoundListSectionHeader()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private extension AppAppearance {
|
||||
|
||||
Reference in New Issue
Block a user