This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/views/rooms Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ import SettingsStore from "../../../settings/SettingsStore";
46
46
47
47
import { logger } from "matrix-js-sdk/src/logger" ;
48
48
import { withMatrixClientHOC , MatrixClientProps } from '../../../contexts/MatrixClientContext' ;
49
- import RoomContext , { AppRenderingContext } from '../../../contexts/RoomContext' ;
49
+ import RoomContext , { TimelineRenderingType } from '../../../contexts/RoomContext' ;
50
50
51
51
function getHtmlReplyFallback ( mxEvent : MatrixEvent ) : string {
52
52
const html = mxEvent . getContent ( ) . formatted_body ;
@@ -70,7 +70,7 @@ function getTextReplyFallback(mxEvent: MatrixEvent): string {
70
70
function createEditContent (
71
71
model : EditorModel ,
72
72
editedEvent : MatrixEvent ,
73
- renderingContext ?: AppRenderingContext ,
73
+ renderingContext ?: TimelineRenderingType ,
74
74
) : IContent {
75
75
const isEmote = containsEmote ( model ) ;
76
76
if ( isEmote ) {
@@ -112,7 +112,7 @@ function createEditContent(
112
112
} ,
113
113
} ;
114
114
115
- if ( renderingContext === AppRenderingContext . Thread ) {
115
+ if ( renderingContext === TimelineRenderingType . Thread ) {
116
116
relation [ 'm.relates_to' ] [ UNSTABLE_ELEMENT_REPLY_IN_THREAD . name ] = true ;
117
117
}
118
118
You can’t perform that action at this time.
0 commit comments