Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 2589688

Browse files
author
Germain Souquet
committed
Rename rendering context to timeline rendering type
1 parent 9457356 commit 2589688

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/views/rooms/EditMessageComposer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import SettingsStore from "../../../settings/SettingsStore";
4646

4747
import { logger } from "matrix-js-sdk/src/logger";
4848
import { withMatrixClientHOC, MatrixClientProps } from '../../../contexts/MatrixClientContext';
49-
import RoomContext, { AppRenderingContext } from '../../../contexts/RoomContext';
49+
import RoomContext, { TimelineRenderingType } from '../../../contexts/RoomContext';
5050

5151
function getHtmlReplyFallback(mxEvent: MatrixEvent): string {
5252
const html = mxEvent.getContent().formatted_body;
@@ -70,7 +70,7 @@ function getTextReplyFallback(mxEvent: MatrixEvent): string {
7070
function createEditContent(
7171
model: EditorModel,
7272
editedEvent: MatrixEvent,
73-
renderingContext?: AppRenderingContext,
73+
renderingContext?: TimelineRenderingType,
7474
): IContent {
7575
const isEmote = containsEmote(model);
7676
if (isEmote) {
@@ -112,7 +112,7 @@ function createEditContent(
112112
},
113113
};
114114

115-
if (renderingContext === AppRenderingContext.Thread) {
115+
if (renderingContext === TimelineRenderingType.Thread) {
116116
relation['m.relates_to'][UNSTABLE_ELEMENT_REPLY_IN_THREAD.name] = true;
117117
}
118118

0 commit comments

Comments
 (0)