From da83df220622c762a71bd796e352bd7d282ed9e6 Mon Sep 17 00:00:00 2001 From: ThomasSession Date: Mon, 23 Sep 2024 17:01:19 +1000 Subject: [PATCH] Fixing scroll when getting new messages --- .../securesms/conversation/v2/ConversationActivityV2.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt index aa4f7167e7..a1eca65eb4 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt @@ -2471,7 +2471,7 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe // Note: The adapter itemCount is zero based - so calling this with the itemCount in // a non-zero based manner scrolls us to the bottom of the last message (including // to the bottom of long messages as required by Jira SES-789 / GitHub 1364). - recyclerView.scrollToPosition(adapter.itemCount) + recyclerView.smoothScrollToPosition(adapter.itemCount) } } }