mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
Handle number of batches / last batch
This commit is contained in:
@@ -50,6 +50,10 @@ final class PollHistoryService: PollHistoryServiceProtocol {
|
||||
func nextBatch() -> AnyPublisher<TimelinePollDetails, Error> {
|
||||
currentBatchSubject?.eraseToAnyPublisher() ?? startPagination()
|
||||
}
|
||||
|
||||
var hasNextBatch: Bool {
|
||||
timeline.canPaginate(.backwards)
|
||||
}
|
||||
}
|
||||
|
||||
private extension PollHistoryService {
|
||||
|
||||
Reference in New Issue
Block a user