diff --git a/Packages/Timeline/Sources/Timeline/actors/TimelineDatasource.swift b/Packages/Timeline/Sources/Timeline/actors/TimelineDatasource.swift index 39132ccf..40f4914d 100644 --- a/Packages/Timeline/Sources/Timeline/actors/TimelineDatasource.swift +++ b/Packages/Timeline/Sources/Timeline/actors/TimelineDatasource.swift @@ -32,6 +32,10 @@ actor TimelineDatasource { } } + func count() -> Int { + statuses.count + } + func reset() { statuses = [] } @@ -48,6 +52,10 @@ actor TimelineDatasource { self.statuses = statuses } + func append(_ status: Status) { + statuses.append(status) + } + func append(contentOf: [Status]) { statuses.append(contentsOf: contentOf) }