Skip to content

High performance self-hosted photo and video management solution.

chore: remove main timeline query watch throttle (#21942)

Alex0166e99d9004
diff --git a/mobile/lib/infrastructure/repositories/timeline.repository.dart b/mobile/lib/infrastructure/repositories/timeline.repository.dart
index 97c9b6f493..86f68c397e 100644
--- a/mobile/lib/infrastructure/repositories/timeline.repository.dart
+++ b/mobile/lib/infrastructure/repositories/timeline.repository.dart
@@ -42,14 +42,10 @@ class DriftTimelineRepository extends DriftDatabaseRepository {
throw UnsupportedError("GroupAssetsBy.none is not supported for watchMainBucket");
}
- return _db.mergedAssetDrift
- .mergedBucket(userIds: userIds, groupBy: groupBy.index)
- .map((row) {
- final date = row.bucketDate.dateFmt(groupBy);
- return TimeBucket(date: date, assetCount: row.assetCount);
- })
- .watch()
- .throttle(const Duration(seconds: 3), trailing: true);
+ return _db.mergedAssetDrift.mergedBucket(userIds: userIds, groupBy: groupBy.index).map((row) {
+ final date = row.bucketDate.dateFmt(groupBy);
+ return TimeBucket(date: date, assetCount: row.assetCount);
+ }).watch();
}
Future<List<BaseAsset>> _getMainBucketAssets(List<String> userIds, {required int offset, required int count}) {