Scroll to message if clicking on opened conversation
This commit is contained in:
parent
50a0110192
commit
a1a2c68137
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue