diff --git a/src/components/structures/RoomView.tsx b/src/components/structures/RoomView.tsx index 080e09bb95..315fe8c3a2 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();