Skip to content

Commit e52bd94

Browse files
committed
feat: use StartChat instead of NewRoomIntro
1 parent 9f5b80d commit e52bd94

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

apps/web/src/components/structures/RoomView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ import Measured from "../views/elements/Measured";
115115
import { type FocusComposerPayload } from "../../dispatcher/payloads/FocusComposerPayload";
116116
import { LocalRoom, LocalRoomState } from "../../models/LocalRoom";
117117
import { createRoomFromLocalRoom } from "../../utils/direct-messages";
118-
import NewRoomIntro from "../views/rooms/NewRoomIntro";
119118
import { isLocalRoom } from "../../utils/localRoom/isLocalRoom";
120119
import { type ShowThreadPayload } from "../../dispatcher/payloads/ShowThreadPayload";
121120
import { LargeLoader } from "./LargeLoader";
@@ -142,6 +141,7 @@ import { type RoomViewStore } from "../../stores/RoomViewStore.tsx";
142141
import { RoomStatusBarViewModel } from "../../viewmodels/room/RoomStatusBar.ts";
143142
import { EncryptionEventViewModel } from "../../viewmodels/event-tiles/EncryptionEventViewModel.ts";
144143
import { ModuleApi } from "../../modules/Api.ts";
144+
import { StartChat } from "../views/rooms/StartChat";
145145

146146
const DEBUG = false;
147147
const PREVENT_MULTIPLE_JITSI_WITHIN = 30_000;
@@ -347,7 +347,7 @@ function LocalRoomView(props: LocalRoomViewProps): ReactElement {
347347
<div className="mx_RoomView_timeline">
348348
<ScrollPanel className="mx_RoomView_messagePanel">
349349
{encryptionTile}
350-
<NewRoomIntro />
350+
<StartChat />
351351
</ScrollPanel>
352352
</div>
353353
{statusBar}

apps/web/src/components/structures/WaitingForThirdPartyRoomView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ import type ResizeNotifier from "../../utils/ResizeNotifier";
1515
import ErrorBoundary from "../views/elements/ErrorBoundary";
1616
import RoomHeader from "../views/rooms/RoomHeader/RoomHeader.tsx";
1717
import ScrollPanel from "./ScrollPanel";
18-
import NewRoomIntro from "../views/rooms/NewRoomIntro";
1918
import { UnwrappedEventTile } from "../views/rooms/EventTile";
2019
import { _t } from "../../languageHandler";
2120
import SdkConfig from "../../SdkConfig";
2221
import { useScopedRoomContext } from "../../contexts/ScopedRoomContext.tsx";
22+
import { StartChat } from "../views/rooms/StartChat.tsx";
2323

2424
interface Props {
2525
roomView: RefObject<HTMLElement | null>;
@@ -49,7 +49,7 @@ export const WaitingForThirdPartyRoomView: React.FC<Props> = ({ roomView, resize
4949
title={_t("room|waiting_for_join_title", { brand })}
5050
subtitle={_t("room|waiting_for_join_subtitle", { brand })}
5151
/>
52-
<NewRoomIntro />
52+
<StartChat />
5353
<UnwrappedEventTile mxEvent={inviteEvent} />
5454
</ScrollPanel>
5555
</div>

apps/web/src/components/structures/grouper/CreationGrouper.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import { SeparatorKind, type WrappedEvent } from "../MessagePanel";
1616
import type MessagePanel from "../MessagePanel";
1717
import DMRoomMap from "../../../utils/DMRoomMap";
1818
import { _t } from "../../../languageHandler";
19-
import NewRoomIntro from "../../views/rooms/NewRoomIntro";
2019
import GenericEventListSummary from "../../views/elements/GenericEventListSummary";
2120
import { DateSeparatorViewModel } from "../../../viewmodels/timeline/DateSeparatorViewModel";
21+
import { StartChat } from "../../views/rooms/StartChat";
2222

2323
// Wrap initial room creation events into a GenericEventListSummary
2424
// Grouping only events sent by the same user that sent the `m.room.create` and only until
@@ -137,7 +137,7 @@ export class CreationGrouper extends BaseGrouper {
137137
summaryText = _t("timeline|creation_summary_room", { creator });
138138
}
139139

140-
ret.push(<NewRoomIntro key="newroomintro" />);
140+
ret.push(<StartChat key="startchat" />);
141141

142142
ret.push(
143143
<GenericEventListSummary

0 commit comments

Comments
 (0)