Skip to content

Commit

Permalink
fix a bug i introduced in #180 (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaticHacker authored Jul 14, 2022
1 parent 3a0ecfb commit 89fca00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/jerboa/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,8 @@ fun fetchInitialData(
homeViewModel.fetchPosts(
account = account,
clear = true,
changeListingType = ListingType.Local,
changeSortType = SortType.Active,
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class HomeViewModel : ViewModel() {
account: Account?,
nextPage: Boolean = false,
clear: Boolean = false,
changeListingType: ListingType? = ListingType.Local,
changeSortType: SortType? = SortType.Active,
changeListingType: ListingType? = null,
changeSortType: SortType? = null,
ctx: Context? = null,
) {
fetchPostsRoutine(
Expand Down

0 comments on commit 89fca00

Please sign in to comment.