Aadded sender name when voiceover focuses a poll title (#4306)

* added sender name in poll voiceover

* improved the code

* code improvement
This commit is contained in:
Mauro
2025-07-08 16:37:27 +02:00
committed by GitHub
parent a61502b8df
commit c60fd88577
5 changed files with 28 additions and 12 deletions
@@ -59,7 +59,7 @@ struct RoomPollsHistoryScreen: View {
.font(.compound.bodySM)
.foregroundColor(.compound.textSecondary)
PollView(poll: pollTimelineItem.item.poll,
state: .full(isEditable: pollTimelineItem.item.isEditable)) { action in
state: .full(isEditable: pollTimelineItem.item.isEditable), sender: pollTimelineItem.item.sender) { action in
switch action {
case .selectOption(let optionID):
guard let pollStartID = pollTimelineItem.item.id.eventID else { return }