Skip to content

Commit 595d15e

Browse files
authored
Do not show alerts when casting a vote or removing vote (#505)
1 parent 9e81f19 commit 595d15e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Sources/StreamChatSwiftUI/ChatChannel/MessageList/Polls/PollAttachmentViewModel.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,6 @@ public class PollAttachmentViewModel: ObservableObject, PollControllerDelegate {
134134
log.error("Error casting a vote \(error.localizedDescription)")
135135
if error is ClientError.PollVoteAlreadyExists {
136136
log.debug("Vote already added")
137-
} else {
138-
self?.errorShown = true
139137
}
140138
}
141139
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
@@ -174,7 +172,6 @@ public class PollAttachmentViewModel: ObservableObject, PollControllerDelegate {
174172
self?.isCastingVote = false
175173
if let error {
176174
log.error("Error removing a vote \(error.localizedDescription)")
177-
self?.errorShown = true
178175
}
179176
}
180177
}

0 commit comments

Comments
 (0)