Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-17 15:29:18 +02:00
parent 7b45efc9e9
commit e439d2e911
No known key found for this signature in database
GPG Key ID: CC823428E9B582FB
2 changed files with 11 additions and 12 deletions

View File

@ -36,25 +36,25 @@ import { Room } from 'matrix-js-sdk/src/models/room';
interface IProps { interface IProps {
// the latest event in this chain of replies // the latest event in this chain of replies
parentEv?: MatrixEvent, parentEv?: MatrixEvent;
// called when the ReplyThread contents has changed, including EventTiles thereof // called when the ReplyThread contents has changed, including EventTiles thereof
onHeightChanged: () => void, onHeightChanged: () => void;
permalinkCreator: RoomPermalinkCreator, permalinkCreator: RoomPermalinkCreator;
// Specifies which layout to use. // Specifies which layout to use.
layout?: Layout, layout?: Layout;
// Whether to always show a timestamp // Whether to always show a timestamp
alwaysShowTimestamps?: boolean, alwaysShowTimestamps?: boolean;
} }
interface IState { interface IState {
// The loaded events to be rendered as linear-replies // The loaded events to be rendered as linear-replies
events: MatrixEvent[], events: MatrixEvent[];
// The latest loaded event which has not yet been shown // The latest loaded event which has not yet been shown
loadedEv: MatrixEvent, loadedEv: MatrixEvent;
// Whether the component is still loading more events // Whether the component is still loading more events
loading: boolean, loading: boolean;
// Whether as error was encountered fetching a replied to event. // Whether as error was encountered fetching a replied to event.
err: boolean, err: boolean;
} }
// This component does no cycle detection, simply because the only way to make such a cycle would be to // This component does no cycle detection, simply because the only way to make such a cycle would be to

View File

@ -18,7 +18,6 @@ import React from 'react';
import dis from '../../../dispatcher/dispatcher'; import dis from '../../../dispatcher/dispatcher';
import { _t } from '../../../languageHandler'; import { _t } from '../../../languageHandler';
import RoomViewStore from '../../../stores/RoomViewStore'; import RoomViewStore from '../../../stores/RoomViewStore';
import PropTypes from "prop-types";
import { RoomPermalinkCreator } from "../../../utils/permalinks/Permalinks"; import { RoomPermalinkCreator } from "../../../utils/permalinks/Permalinks";
import { replaceableComponent } from "../../../utils/replaceableComponent"; import { replaceableComponent } from "../../../utils/replaceableComponent";
import ReplyTile from './ReplyTile'; import ReplyTile from './ReplyTile';
@ -33,11 +32,11 @@ function cancelQuoting() {
} }
interface IProps { interface IProps {
permalinkCreator: RoomPermalinkCreator, permalinkCreator: RoomPermalinkCreator;
} }
interface IState { interface IState {
event: MatrixEvent event: MatrixEvent;
} }
@replaceableComponent("views.rooms.ReplyPreview") @replaceableComponent("views.rooms.ReplyPreview")