♻️ Refactored attachment cache
This commit is contained in:
@ -61,7 +61,8 @@ class PostCommentSliverListState extends State<PostCommentSliverList> {
|
||||
preload: SnPostPreload(
|
||||
attachments: attachments
|
||||
.where(
|
||||
(ele) => out[i].body['attachments']?.contains(ele.rid) ?? false,
|
||||
(ele) =>
|
||||
out[i].body['attachments']?.contains(ele?.rid) ?? false,
|
||||
)
|
||||
.toList(),
|
||||
),
|
||||
|
Reference in New Issue
Block a user