@@ -918,6 +918,14 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: { |
918 | 918 | : null, |
919 | 919 | [handleMenuAction, snoozePresetActions, swipeActions.secondary, thread.title], |
920 | 920 | ); |
| 921 | + // VoiceOver reads the row as one element, so it carries what a waiting task waits on. |
| 922 | + const accessibilityLabel = [ |
| 923 | + thread.title, |
| 924 | + waitingStatus?.label, |
| 925 | + props.hasQueuedMessages ? "messages queued to send" : undefined, |
| 926 | + ] |
| 927 | + .filter(Boolean) |
| 928 | + .join(", "); |
921 | 929 | const swipeAccessibilityHint = |
922 | 930 | secondaryAction === null |
923 | 931 | ? `Opens the thread. Swipe left to ${primaryAction.label.toLowerCase()}.` |
@@ -1123,9 +1131,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: { |
1123 | 1131 | interactionOpacity={rowAppearance.interactionOpacity} |
1124 | 1132 | className={rowAppearance.className} |
1125 | 1133 | accessibilityHint={swipeAccessibilityHint} |
1126 | | - accessibilityLabel={ |
1127 | | - props.hasQueuedMessages ? `${thread.title}, messages queued to send` : thread.title |
1128 | | - } |
| 1134 | + accessibilityLabel={accessibilityLabel} |
1129 | 1135 | accessibilityRole="button" |
1130 | 1136 | accessibilityState={{ selected }} |
1131 | 1137 | onPress={() => { |
@@ -1155,9 +1161,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: { |
1155 | 1161 | interactionClassName={rowAppearance.interactionClassName} |
1156 | 1162 | interactionOpacity={rowAppearance.interactionOpacity} |
1157 | 1163 | accessibilityHint={swipeAccessibilityHint} |
1158 | | - accessibilityLabel={ |
1159 | | - props.hasQueuedMessages ? `${thread.title}, messages queued to send` : thread.title |
1160 | | - } |
| 1164 | + accessibilityLabel={accessibilityLabel} |
1161 | 1165 | accessibilityRole="button" |
1162 | 1166 | accessibilityState={{ selected }} |
1163 | 1167 | className={rowAppearance.className} |
|