mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 19:41:52 +03:00
Revert JumpToBottom to button and use dispatcher to view room
This commit is contained in:
parent
d450822bfd
commit
d148b521f5
2 changed files with 4 additions and 4 deletions
|
@ -1509,8 +1509,10 @@ export default class RoomView extends React.Component<IProps, IState> {
|
|||
|
||||
// jump down to the bottom of this room, where new events are arriving
|
||||
private jumpToLiveTimeline = () => {
|
||||
this.messagePanel.jumpToLiveTimeline();
|
||||
dis.fire(Action.FocusComposer);
|
||||
dis.dispatch({
|
||||
action: 'view_room',
|
||||
room_id: this.state.room.roomId,
|
||||
});
|
||||
};
|
||||
|
||||
// jump up to wherever our read marker is
|
||||
|
|
|
@ -29,8 +29,6 @@ export default (props) => {
|
|||
}
|
||||
return (<div className={className}>
|
||||
<AccessibleButton className="mx_JumpToBottomButton_scrollDown"
|
||||
element="a"
|
||||
href={`#/room/${props.roomId}`}
|
||||
title={_t("Scroll to most recent messages")}
|
||||
onClick={props.onScrollToBottomClick}>
|
||||
</AccessibleButton>
|
||||
|
|
Loading…
Reference in a new issue