Pull scroll_to_bottom up a level similarly to prevent it firing on NotifPanel/FilePanel when sending a message

This commit is contained in:
Michael Telatynski 2021-06-28 16:03:52 +01:00
parent fd9e891647
commit c708afe216
2 changed files with 4 additions and 4 deletions

View file

@ -843,6 +843,10 @@ export default class RoomView extends React.Component<IProps, IState> {
}
break;
}
case "scroll_to_bottom":
this.messagePanel?.jumpToLiveTimeline();
break;
}
};

View file

@ -446,10 +446,6 @@ class TimelinePanel extends React.Component {
case "ignore_state_changed":
this.forceUpdate();
break;
case "scroll_to_bottom":
this.jumpToLiveTimeline();
break;
}
};