diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index af6c098adcaa43e44ca651744813f5f09e7e4495..d1df414edf7151da6c1a02afcd47feeece6ef22c 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -1586,7 +1586,6 @@ public class ConversationFragment extends XmppFragment messageListAdapter.setOnContactPictureLongClicked(this); messageListAdapter.setOnInlineImageLongClicked(this); messageListAdapter.setConversationFragment(this); - // messageListAdapter.setReplyClickListener(this::scrollToReply); //TODO add a better scrol to reply later binding.messagesView.setAdapter(messageListAdapter); binding.textinput.addTextChangedListener( @@ -1893,19 +1892,6 @@ public class ConversationFragment extends XmppFragment } - private void scrollToReply(Message message) { - Element reply = message.getReply(); - if (reply == null) return; - - String replyId = reply.getAttribute("id"); - - if (replyId != null) { - Runnable postSelectionRunnable = () -> highlightMessage(replyId); - replyJumps.push(message); - updateSelection(replyId, binding.messagesView.getHeight() / 2, postSelectionRunnable, true, false); - } - } - private void highlightMessage(String uuid) { binding.messagesView.postDelayed(() -> { int actualIndex = getIndexOfExtended(uuid, messageList);