From 279892e83bd2bc98103676aaf9d63e8a84d5e9d0 Mon Sep 17 00:00:00 2001
From: Ryan Zhao <ryanzhaors@qq.com>
Date: Tue, 1 Mar 2022 14:03:10 +1100
Subject: [PATCH] fix some scrolling to bottom and button issue

---
 Session/Conversations/ConversationVC.swift | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/Session/Conversations/ConversationVC.swift b/Session/Conversations/ConversationVC.swift
index 75286ab90..1ec8000e1 100644
--- a/Session/Conversations/ConversationVC.swift
+++ b/Session/Conversations/ConversationVC.swift
@@ -644,9 +644,6 @@ final class ConversationVC : BaseVC, ConversationViewModelDelegate, OWSConversat
                 }
                 self.markAllAsRead()
             }
-            if shouldScrollToBottom {
-                self.scrollToBottom(isAnimated: false)
-            }
         }
         
         // Update the input state if this is a contact thread
@@ -747,7 +744,7 @@ final class ConversationVC : BaseVC, ConversationViewModelDelegate, OWSConversat
     
     func scrollToBottom(isAnimated: Bool) {
         guard !isUserScrolling && !viewItems.isEmpty else { return }
-        messagesTableView.scrollToRow(at: IndexPath(row: viewItems.count - 1, section: 0), at: .top, animated: isAnimated)
+        messagesTableView.scrollToRow(at: IndexPath(row: viewItems.count - 1, section: 0), at: .bottom, animated: isAnimated)
     }
     
     func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {