Scroll to message if clicking on opened conversation

This commit is contained in:
Josh Perez
2023-01-12 13:51:03 -05:00
committed by GitHub
parent 50a0110192
commit a1a2c68137

View File

@@ -3498,6 +3498,10 @@ function showConversation({
const { conversations } = getState(); const { conversations } = getState();
if (conversationId === conversations.selectedConversationId) { if (conversationId === conversations.selectedConversationId) {
if (conversationId && messageId) {
scrollToMessage(conversationId, messageId)(dispatch, getState, null);
}
return; return;
} }