Clicking jump to bottom resets room hash

pull/21833/head
Germain Souquet 2021-03-31 12:28:24 +01:00
parent 58343c7699
commit a308a54183
3 changed files with 4 additions and 0 deletions

View File

@ -52,6 +52,7 @@ limitations under the License.
.mx_JumpToBottomButton_scrollDown {
position: relative;
display: block;
height: 38px;
border-radius: 19px;
box-sizing: border-box;

View File

@ -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}
/>);
}

View File

@ -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>