You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Revert JumpToBottom to button and use dispatcher to view room
This commit is contained in:
@@ -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
|
// jump down to the bottom of this room, where new events are arriving
|
||||||
private jumpToLiveTimeline = () => {
|
private jumpToLiveTimeline = () => {
|
||||||
this.messagePanel.jumpToLiveTimeline();
|
dis.dispatch({
|
||||||
dis.fire(Action.FocusComposer);
|
action: 'view_room',
|
||||||
|
room_id: this.state.room.roomId,
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// jump up to wherever our read marker is
|
// jump up to wherever our read marker is
|
||||||
|
|||||||
@@ -29,8 +29,6 @@ export default (props) => {
|
|||||||
}
|
}
|
||||||
return (<div className={className}>
|
return (<div className={className}>
|
||||||
<AccessibleButton className="mx_JumpToBottomButton_scrollDown"
|
<AccessibleButton className="mx_JumpToBottomButton_scrollDown"
|
||||||
element="a"
|
|
||||||
href={`#/room/${props.roomId}`}
|
|
||||||
title={_t("Scroll to most recent messages")}
|
title={_t("Scroll to most recent messages")}
|
||||||
onClick={props.onScrollToBottomClick}>
|
onClick={props.onScrollToBottomClick}>
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
|
|||||||
Reference in New Issue
Block a user