From 7ce16c5b2dc82683c072e054f042f4d3d904d9e7 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Tue, 18 Aug 2026 11:15:46 +0300 Subject: [PATCH] Rework accessibility identifier comment --- .../Timeline/View/Style/TimelineItemSendInfoLabel.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ElementX/Sources/Screens/Timeline/View/Style/TimelineItemSendInfoLabel.swift b/ElementX/Sources/Screens/Timeline/View/Style/TimelineItemSendInfoLabel.swift index ef3b53d0b..61333141c 100644 --- a/ElementX/Sources/Screens/Timeline/View/Style/TimelineItemSendInfoLabel.swift +++ b/ElementX/Sources/Screens/Timeline/View/Style/TimelineItemSendInfoLabel.swift @@ -48,8 +48,7 @@ private struct TimelineItemSendInfoModifier: ViewModifier { TimelineItemSendInfoLabel(sendInfo: sendInfo) .accessibilityHidden(isAccessibilityHidden) .contentShape(.rect) - // Only the labels with a tappable status get the identifier, so that - // plain timestamps don't produce ambiguous matches in UI tests. + // Only tappable labels get the identifier, plain timestamps would be ambiguous matches. .accessibilityIdentifier(sendInfo.status != nil ? A11yIdentifiers.roomScreen.sendInfo : "") // Tap gesture to avoid the message being detected as a button by VoiceOver // (and the action shows a description that is already read to the user).