We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f2b924 + 07a1c59 commit 8778051Copy full SHA for 8778051
lib/domain_layer/usecases/cache_read/cache_read.dart
@@ -27,13 +27,16 @@ class CacheRead {
27
since: filter.since,
28
until: filter.until,
29
);
30
+
31
foundEvents.addAll(foundAuthors);
32
33
// remove found authors from unresolved filter if it's not a subscription
- if (!requestState.isSubscription) {
34
- filter.authors!.removeWhere(
35
- (author) => foundEvents.any((event) => event.pubKey == author),
36
- );
+ if (!requestState.isSubscription && foundAuthors.isNotEmpty) {
+ if ((filter.limit != null && foundEvents.length >= filter.limit!)) {
+ filter.authors!.removeWhere(
37
+ (author) => foundEvents.any((event) => event.pubKey == author),
38
+ );
39
+ }
40
}
41
42
0 commit comments