From a1a2c68137ea37b06b9e0c2c6132639d80748869 Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Thu, 12 Jan 2023 13:51:03 -0500 Subject: [PATCH] Scroll to message if clicking on opened conversation --- ts/state/ducks/conversations.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ts/state/ducks/conversations.ts b/ts/state/ducks/conversations.ts index 3afc76e9f..0ca5922fe 100644 --- a/ts/state/ducks/conversations.ts +++ b/ts/state/ducks/conversations.ts @@ -3498,6 +3498,10 @@ function showConversation({ const { conversations } = getState(); if (conversationId === conversations.selectedConversationId) { + if (conversationId && messageId) { + scrollToMessage(conversationId, messageId)(dispatch, getState, null); + } + return; }