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
@@ -22,7 +22,8 @@ struct PollRoomTimelineView: View {
var body: some View {
TimelineStyler(timelineItem: timelineItem) {
PollView(poll: poll,
state: state) { action in
state: state,
sender: timelineItem.sender) { action in
switch action {
case .selectOption(let optionID):
guard let eventID, let option = poll.options.first(where: { $0.id == optionID }), !option.isSelected else { return }