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

Fix Scroll to most recent messages button not working when a message is highlighted #7333

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 2 additions & 13 deletions src/components/structures/RoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1639,19 +1639,8 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {

// jump down to the bottom of this room, where new events are arriving
private jumpToLiveTimeline = () => {
if (this.state.initialEventId && this.state.isInitialEventHighlighted) {
// If we were viewing a highlighted event, firing view_room without
// an event will take care of both clearing the URL fragment and
// jumping to the bottom
dis.dispatch({
action: Action.ViewRoom,
room_id: this.state.room.roomId,
});
} else {
// Otherwise we have to jump manually
this.messagePanel.jumpToLiveTimeline();
dis.fire(Action.FocusSendMessageComposer);
}
this.messagePanel.jumpToLiveTimeline();
dis.fire(Action.FocusSendMessageComposer);
};

// jump up to wherever our read marker is
Expand Down