Add missing JumpToOldestUnread action

pull/21833/head
Clemens Zeidler 2021-03-01 22:15:05 +13:00
parent 601be50b71
commit ef7284e69d
2 changed files with 3 additions and 1 deletions

View File

@ -70,6 +70,8 @@ export enum RoomAction {
RoomScrollDown = 'RoomScrollDown',
/** Dismiss read marker and jump to bottom */
DismissReadMarker = 'DismissReadMarker',
/** Jump to oldest unread message */
JumpToOldestUnread = 'JumpToOldestUnread',
/* Upload a file */
UploadFile = 'UploadFile',
/* Focus search message in a room (must be enabled) */

View File

@ -668,7 +668,7 @@ export default class RoomView extends React.Component<IProps, IState> {
this.jumpToLiveTimeline();
handled = true;
break;
case RoomAction.ScrollUp:
case RoomAction.JumpToOldestUnread:
this.jumpToReadMarker();
handled = true;
break;