Commit 3dd2e459 authored by Thomas's avatar Thomas
Browse files

Fix #253 - Missing messages

parent f597d52a
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -941,8 +941,10 @@ public class FragmentMastodonTimeline extends Fragment implements StatusAdapter.
                            .observe(getViewLifecycleOwner(), statusesBottom -> dealWithPagination(statusesBottom, DIRECTION.BOTTOM, false));
                }
            } else {
                timelinesVM.getHomeCache(BaseMainActivity.currentInstance, BaseMainActivity.currentUserID, max_id_fetch_more, null, null)
                        .observe(getViewLifecycleOwner(), statusesBottom -> dealWithPagination(statusesBottom, DIRECTION.BOTTOM, true));
                timelinesVM.getHome(BaseMainActivity.currentInstance, BaseMainActivity.currentToken, true, max_id_fetch_more, null, null, MastodonHelper.statusesPerCall(requireActivity()), false)
                        .observe(getViewLifecycleOwner(), statusesBottom -> {
                            dealWithPagination(statusesBottom, DIRECTION.BOTTOM, true);
                        });
            }
        } else if (direction == DIRECTION.TOP) {
            if (!fetchingMissing) {