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.
1 parent d607108 commit 0f0658eCopy full SHA for 0f0658e
lib/models/comment.dart
@@ -11,7 +11,7 @@ class Comment {
11
final Author? author;
12
final String? message;
13
14
- bool get notBanned => banned;
+ bool get notBanned => !banned;
15
16
Comment({
17
required this.id,
lib/stores/habr_storage.dart
@@ -78,7 +78,7 @@ class HabrStorage {
78
Future<Comments> _checkCachedCommentsAuthors(Comments comments) async {
79
final authorsId = comments.comments.values
80
.where((element) => element.notBanned)
81
- .map((comment) => comment.author?.id)
+ .map((comment) => comment.author?.id ?? '')
82
.toSet();
83
final cachedAuthors =
84
await Future.wait(authorsId.map((e) => this.authors.get(e))).then(
0 commit comments