From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: alina sireneva <alina@tei.su>
Date: Fri, 10 Apr 2026 05:03:51 +0300
Subject: disable the "only show go to bottom button when scrolling up" behavior in chat

---
 .../src/main/java/org/telegram/ui/ChatActivity.java  | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java
index 0000000..0000000 100644
--- a/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java
+++ b/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java
@@ -6871,7 +6871,13 @@ public class ChatActivity extends BaseFragment implements
                                 }
                             }
                         } else {
-                            if (pagedownButtonShowedByScroll && isPageDownButtonVisible) {
+                            if (InuConfig.CHAT_ALWAYS_SHOW_DOWN.getValue()) {
+                                if (firstVisibleItem != 0 && !isPageDownButtonVisible) {
+                                    canShowPagedownButton = true;
+                                    updatePagedownButtonVisibility(true);
+                                    pagedownButtonShowedByScroll = true;
+                                }
+                            } else if (pagedownButtonShowedByScroll && isPageDownButtonVisible) {
                                 totalDy += dy;
                                 if (totalDy < -scrollValue) {
                                     canShowPagedownButton = false;
@@ -15465,6 +15471,10 @@ public class ChatActivity extends BaseFragment implements
             }
             chatLayoutManager.scrollToPositionWithOffset(position, 0);
             chatListView.stopScroll();
+            if (InuConfig.CHAT_ALWAYS_SHOW_DOWN.getValue()) {
+                canShowPagedownButton = false;
+                updatePagedownButtonVisibility(true);
+            }
         }
     }
 
