Settings to enable and disable sending public RRs (#2384)

This commit is contained in:
Mauro
2024-01-25 15:47:33 +01:00
committed by GitHub
parent 29c8049559
commit e755be4cda
14 changed files with 84 additions and 38 deletions
@@ -73,7 +73,7 @@ struct InvitesScreen_Previews: PreviewProvider, TestablePreview {
NavigationView {
InvitesScreen(context: InvitesScreenViewModel.someInvite.context)
}
.snapshot(delay: 2.0)
.snapshot(delay: 3.0)
.previewDisplayName("Some Invite")
}
}
@@ -42,6 +42,7 @@ protocol AdvancedSettingsProtocol: AnyObject {
var viewSourceEnabled: Bool { get set }
var richTextEditorEnabled: Bool { get set }
var appAppearance: AppAppearance { get set }
var sendReadReceiptsEnabled: Bool { get set }
}
extension AppSettings: AdvancedSettingsProtocol { }
@@ -36,6 +36,10 @@ struct AdvancedSettingsScreen: View {
ListRow(label: .plain(title: L10n.actionViewSource),
kind: .toggle($context.viewSourceEnabled))
ListRow(label: .plain(title: L10n.screenAdvancedSettingsSendReadReceipts,
description: L10n.screenAdvancedSettingsSendReadReceiptsDescription),
kind: .toggle($context.sendReadReceiptsEnabled))
}
}
.compoundList()