From 0166e99d90046252b4cb3e78077ef3519f0bc0ec Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 14 Sep 2025 02:09:07 -0500 Subject: [PATCH] chore: remove main timeline query watch throttle (#21942) --- .../repositories/timeline.repository.dart | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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> _getMainBucketAssets(List userIds, {required int offset, required int count}) {