Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Clicking jump to bottom resets room hash #5823

Merged
merged 8 commits into from
Jun 2, 2021
1 change: 1 addition & 0 deletions res/css/views/rooms/_JumpToBottomButton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ limitations under the License.

.mx_JumpToBottomButton_scrollDown {
position: relative;
display: block;
height: 38px;
border-radius: 19px;
box-sizing: border-box;
Expand Down
1 change: 1 addition & 0 deletions src/components/structures/RoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2037,6 +2037,7 @@ export default class RoomView extends React.Component<IProps, IState> {
highlight={this.state.room.getUnreadNotificationCount('highlight') > 0}
numUnreadMessages={this.state.numUnreadMessages}
onScrollToBottomClick={this.jumpToLiveTimeline}
roomId={this.state.roomId}
/>);
}

Expand Down
2 changes: 2 additions & 0 deletions src/components/views/rooms/JumpToBottomButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ 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>
Expand Down