diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index b92d51d8ed..3e6cfa864a 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -843,6 +843,10 @@ export default class RoomView extends React.Component { } break; } + + case "scroll_to_bottom": + this.messagePanel?.jumpToLiveTimeline(); + break; } }; diff --git a/src/components/structures/TimelinePanel.js b/src/components/structures/TimelinePanel.js index 61b7fc0555..4b51a5ecf5 100644 --- a/src/components/structures/TimelinePanel.js +++ b/src/components/structures/TimelinePanel.js @@ -446,10 +446,6 @@ class TimelinePanel extends React.Component { case "ignore_state_changed": this.forceUpdate(); break; - - case "scroll_to_bottom": - this.jumpToLiveTimeline(); - break; } };