peers view show no more than 1000 after filter

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-09-25 11:19:30 +08:00
parent a437524c8f
commit 5236dcfe52
2 changed files with 2 additions and 7 deletions

View File

@@ -173,9 +173,6 @@ class GroupModel {
}
if (json.containsKey('total')) {
if (total == 0) total = json['total'];
if (total > 1000) {
total = 1000;
}
if (json.containsKey('data')) {
final data = json['data'];
if (data is List) {
@@ -188,9 +185,6 @@ class GroupModel {
} else {
tmpPeers[index] = peer;
}
if (tmpPeers.length >= 1000) {
break;
}
}
}
}