Remove unused `scrollToReply`

Phillip Davis created

from cherry-pick of f96f58acd1ce1e1a232991c6be283d8109a48ae7

Change summary

src/main/java/eu/siacs/conversations/ui/ConversationFragment.java | 14 -
1 file changed, 14 deletions(-)

Detailed changes

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);