add some accessibility ids

pull/1023/head
Ryan ZHAO 7 months ago
parent 771b21a96d
commit 62b15b8b90

@ -578,6 +578,9 @@ class ThreadSettingsViewModel: SessionTableViewModel, NavigationItemSource, Navi
.boolValue(
threadViewModel.threadOnlyNotifyForMentions == true,
oldValue: ((previous?.threadViewModel ?? threadViewModel).threadOnlyNotifyForMentions == true)
),
accessibility: Accessibility(
identifier: "Notify for Mentions Only - Switch"
)
),
isEnabled: (
@ -619,6 +622,9 @@ class ThreadSettingsViewModel: SessionTableViewModel, NavigationItemSource, Navi
.boolValue(
threadViewModel.threadMutedUntilTimestamp != nil,
oldValue: ((previous?.threadViewModel ?? threadViewModel).threadMutedUntilTimestamp != nil)
),
accessibility: Accessibility(
identifier: "Mute - Switch"
)
),
isEnabled: (
@ -668,6 +674,9 @@ class ThreadSettingsViewModel: SessionTableViewModel, NavigationItemSource, Navi
.boolValue(
threadViewModel.threadIsBlocked == true,
oldValue: ((previous?.threadViewModel ?? threadViewModel).threadIsBlocked == true)
),
accessibility: Accessibility(
identifier: "Block This User - Switch"
)
),
accessibility: Accessibility(

@ -74,6 +74,9 @@ class ConversationSettingsViewModel: SessionTableViewModel, NavigatableStateHold
key: .trimOpenGroupMessagesOlderThanSixMonths,
value: current.trimOpenGroupMessagesOlderThanSixMonths,
oldValue: (previous ?? current).trimOpenGroupMessagesOlderThanSixMonths
),
accessibility: Accessibility(
identifier: "Trim Communities - Switch"
)
),
onTap: {
@ -96,6 +99,9 @@ class ConversationSettingsViewModel: SessionTableViewModel, NavigatableStateHold
key: .shouldAutoPlayConsecutiveAudioMessages,
value: current.shouldAutoPlayConsecutiveAudioMessages,
oldValue: (previous ?? current).shouldAutoPlayConsecutiveAudioMessages
),
accessibility: Accessibility(
identifier: "Autoplay Audio Messages - Switch"
)
),
onTap: {

@ -93,6 +93,9 @@ class NotificationSettingsViewModel: SessionTableViewModel, NavigatableStateHold
.boolValue(
current.isUsingFullAPNs,
oldValue: (previous ?? current).isUsingFullAPNs
),
accessibility: Accessibility(
identifier: "Use Fast Mode - Switch"
)
),
styling: SessionCell.StyleInfo(
@ -148,6 +151,9 @@ class NotificationSettingsViewModel: SessionTableViewModel, NavigatableStateHold
key: .playNotificationSoundInForeground,
value: current.playNotificationSoundInForeground,
oldValue: (previous ?? current).playNotificationSoundInForeground
),
accessibility: Accessibility(
identifier: "Sound when App is open - Switch"
)
),
onTap: {

Loading…
Cancel
Save