From f8b6f13105a6af49509e6f42ddcc88237823bfec Mon Sep 17 00:00:00 2001 From: Dariusz Niemczyk <3636685+Palid@users.noreply.github.com> Date: Mon, 18 Oct 2021 21:50:06 +0200 Subject: [PATCH] Fix timeline scrolling when sending threads (#6974) Fix https://github.com/vector-im/element-web/issues/19412 --- src/components/structures/RoomView.tsx | 4 +++- src/components/views/rooms/SendMessageComposer.tsx | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index 240509e5f3..db7d7acd90 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -841,7 +841,9 @@ export class RoomView extends React.Component { } case "scroll_to_bottom": - this.messagePanel?.jumpToLiveTimeline(); + if (payload.timelineRenderingType === this.context.timelineRenderingType) { + this.messagePanel?.jumpToLiveTimeline(); + } break; } }; diff --git a/src/components/views/rooms/SendMessageComposer.tsx b/src/components/views/rooms/SendMessageComposer.tsx index 80b7096b00..12458d201f 100644 --- a/src/components/views/rooms/SendMessageComposer.tsx +++ b/src/components/views/rooms/SendMessageComposer.tsx @@ -502,7 +502,10 @@ export class SendMessageComposer extends React.Component