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 {
// the latest event in this chain of replies
parentEv?: MatrixEvent,
parentEv?: MatrixEvent;
// called when the ReplyThread contents has changed, including EventTiles thereof
onHeightChanged: () => void,
permalinkCreator: RoomPermalinkCreator,
onHeightChanged: () => void;
permalinkCreator: RoomPermalinkCreator;
// Specifies which layout to use.
layout?: Layout,
layout?: Layout;
// Whether to always show a timestamp
alwaysShowTimestamps?: boolean,
alwaysShowTimestamps?: boolean;
}
interface IState {
// The loaded events to be rendered as linear-replies
events: MatrixEvent[],
events: MatrixEvent[];
// The latest loaded event which has not yet been shown
loadedEv: MatrixEvent,
loadedEv: MatrixEvent;
// Whether the component is still loading more events
loading: boolean,
loading: boolean;
// 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