From 474cbf4c095df6416783d5388b40c5fabc32136c Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 10 Jan 2022 11:34:27 +0000 Subject: [PATCH] Fix jump to bottom button working when on a permalink (#7494) --- src/components/structures/RoomView.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index 080e09bb959..315fe8c3a2a 100644 --- a/src/components/structures/RoomView.tsx +++ b/src/components/structures/RoomView.tsx @@ -407,6 +407,7 @@ export class RoomView extends React.Component { showAvatarChanges: SettingsStore.getValue("showAvatarChanges", roomId), showDisplaynameChanges: SettingsStore.getValue("showDisplaynameChanges", roomId), wasContextSwitch: RoomViewStore.getWasContextSwitch(), + initialEventId: null, // default to clearing this, will get set later in the method if needed }; const initialEventId = RoomViewStore.getInitialEventId();