Skip to content

Commit 0166e99

Browse files
authored
chore: remove main timeline query watch throttle (#21942)
1 parent 71e33e3 commit 0166e99

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

mobile/lib/infrastructure/repositories/timeline.repository.dart

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,10 @@ class DriftTimelineRepository extends DriftDatabaseRepository {
4242
throw UnsupportedError("GroupAssetsBy.none is not supported for watchMainBucket");
4343
}
4444

45-
return _db.mergedAssetDrift
46-
.mergedBucket(userIds: userIds, groupBy: groupBy.index)
47-
.map((row) {
48-
final date = row.bucketDate.dateFmt(groupBy);
49-
return TimeBucket(date: date, assetCount: row.assetCount);
50-
})
51-
.watch()
52-
.throttle(const Duration(seconds: 3), trailing: true);
45+
return _db.mergedAssetDrift.mergedBucket(userIds: userIds, groupBy: groupBy.index).map((row) {
46+
final date = row.bucketDate.dateFmt(groupBy);
47+
return TimeBucket(date: date, assetCount: row.assetCount);
48+
}).watch();
5349
}
5450

5551
Future<List<BaseAsset>> _getMainBucketAssets(List<String> userIds, {required int offset, required int count}) {

0 commit comments

Comments
 (0)