From 5e19009e02a931ad1d601948e45c385043ca12c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Mon, 6 Dec 2021 15:32:15 +0100 Subject: [PATCH] Fix jump to bottom on message send (#7280) Co-authored-by: Germain --- src/components/structures/RoomView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index d4c45cdb76..5f3f3413a0 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -929,7 +929,7 @@ export class RoomView extends React.Component { } case "scroll_to_bottom": - if (payload.timelineRenderingType === this.context.timelineRenderingType) { + if (payload.timelineRenderingType === TimelineRenderingType.Room) { this.messagePanel?.jumpToLiveTimeline(); } break;