fix: comment loading after deletion (#529)

This commit is contained in:
Diego Beraldin 2024-02-15 19:06:31 +01:00
parent 6ee7f58df1
commit 7d564efc3f

View File

@ -400,7 +400,8 @@ class PostDetailViewModel(
it.copy(
comments = newComments,
loading = false,
canFetchMore = itemList?.isEmpty() != true,
// deleted commments should not be counted
canFetchMore = itemsToAdd.isNotEmpty(),
refreshing = false,
initial = false,
)