diff --git a/RiotSwiftUI/Modules/Room/PollHistory/Service/MatrixSDK/PollHistoryService.swift b/RiotSwiftUI/Modules/Room/PollHistory/Service/MatrixSDK/PollHistoryService.swift index 0d4a5db09..3afd48887 100644 --- a/RiotSwiftUI/Modules/Room/PollHistory/Service/MatrixSDK/PollHistoryService.swift +++ b/RiotSwiftUI/Modules/Room/PollHistory/Service/MatrixSDK/PollHistoryService.swift @@ -25,7 +25,7 @@ final class PollHistoryService: PollHistoryServiceProtocol { private var timelineListener: Any? private let updatesSubject: PassthroughSubject = .init() - private let updatesErrorsSubject: PassthroughSubject = .init() + private let pollErrorsSubject: PassthroughSubject = .init() private var pollAggregators: [String: PollAggregator] = [:] private var targetTimestamp: Date @@ -37,7 +37,7 @@ final class PollHistoryService: PollHistoryServiceProtocol { } var pollErrors: AnyPublisher { - updatesErrorsSubject.eraseToAnyPublisher() + pollErrorsSubject.eraseToAnyPublisher() } init(room: MXRoom, chunkSizeInDays: UInt) { @@ -145,7 +145,7 @@ extension PollHistoryService: PollAggregatorDelegate { } func pollAggregator(_ aggregator: PollAggregator, didFailWithError: Error) { - updatesErrorsSubject.send(didFailWithError) + pollErrorsSubject.send(didFailWithError) } func pollAggregatorDidUpdateData(_ aggregator: PollAggregator) {