mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-25 17:47:47 +00:00
Fix issues with jumpToMessage behavior.
This commit is contained in:
@@ -1005,7 +1005,7 @@ public class ConversationFragment extends LoggingFragment {
|
||||
|
||||
private void moveToPosition(int position, @Nullable Runnable onMessageNotFound) {
|
||||
Log.d(TAG, "moveToPosition(" + position + ")");
|
||||
conversationViewModel.onConversationDataAvailable(threadId, position);
|
||||
conversationViewModel.getPagingController().onDataNeededAroundIndex(position);
|
||||
snapToTopDataObserver.buildScrollPosition(position)
|
||||
.withOnPerformScroll(((layoutManager, p) ->
|
||||
list.post(() -> {
|
||||
|
@@ -127,6 +127,7 @@ public class SnapToTopDataObserver extends RecyclerView.AdapterDataObserver {
|
||||
}
|
||||
|
||||
if (layoutManager.findFirstVisibleItemPosition() == 0) {
|
||||
Log.d(TAG, "Scrolling to top.");
|
||||
scrollToTop.scrollToTop();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user