mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
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:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user