From 25896880ca60cf5e2c22fdc8855cc0673766c4bf Mon Sep 17 00:00:00 2001 From: Germain Souquet Date: Fri, 1 Oct 2021 14:50:35 +0100 Subject: [PATCH] Rename rendering context to timeline rendering type --- src/components/views/rooms/EditMessageComposer.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/views/rooms/EditMessageComposer.tsx b/src/components/views/rooms/EditMessageComposer.tsx index eaf2ea9673..f246361d06 100644 --- a/src/components/views/rooms/EditMessageComposer.tsx +++ b/src/components/views/rooms/EditMessageComposer.tsx @@ -46,7 +46,7 @@ import SettingsStore from "../../../settings/SettingsStore"; import { logger } from "matrix-js-sdk/src/logger"; import { withMatrixClientHOC, MatrixClientProps } from '../../../contexts/MatrixClientContext'; -import RoomContext, { AppRenderingContext } from '../../../contexts/RoomContext'; +import RoomContext, { TimelineRenderingType } from '../../../contexts/RoomContext'; function getHtmlReplyFallback(mxEvent: MatrixEvent): string { const html = mxEvent.getContent().formatted_body; @@ -70,7 +70,7 @@ function getTextReplyFallback(mxEvent: MatrixEvent): string { function createEditContent( model: EditorModel, editedEvent: MatrixEvent, - renderingContext?: AppRenderingContext, + renderingContext?: TimelineRenderingType, ): IContent { const isEmote = containsEmote(model); if (isEmote) { @@ -112,7 +112,7 @@ function createEditContent( }, }; - if (renderingContext === AppRenderingContext.Thread) { + if (renderingContext === TimelineRenderingType.Thread) { relation['m.relates_to'][UNSTABLE_ELEMENT_REPLY_IN_THREAD.name] = true; }