Fix jump to bottom button working when on a permalink (#7494)

This commit is contained in:
Michael Telatynski 2022-01-10 11:34:27 +00:00 committed by GitHub
parent 9562deb28c
commit 474cbf4c09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -407,6 +407,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {
showAvatarChanges: SettingsStore.getValue("showAvatarChanges", roomId), showAvatarChanges: SettingsStore.getValue("showAvatarChanges", roomId),
showDisplaynameChanges: SettingsStore.getValue("showDisplaynameChanges", roomId), showDisplaynameChanges: SettingsStore.getValue("showDisplaynameChanges", roomId),
wasContextSwitch: RoomViewStore.getWasContextSwitch(), wasContextSwitch: RoomViewStore.getWasContextSwitch(),
initialEventId: null, // default to clearing this, will get set later in the method if needed
}; };
const initialEventId = RoomViewStore.getInitialEventId(); const initialEventId = RoomViewStore.getInitialEventId();