Convert EditHistoryMessage to TS

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-09-24 19:55:52 +02:00
parent 0354a7025d
commit bee85a0bcd
No known key found for this signature in database
GPG key ID: 55C211A1226CB17D
2 changed files with 53 additions and 39 deletions

View file

@ -21,8 +21,13 @@ import MatrixClientContext from "../../../contexts/MatrixClientContext";
import { formatFullDate } from "../../../DateUtils";
import SettingsStore from "../../../settings/SettingsStore";
import { IBodyProps } from "./IBodyProps";
import { MatrixEvent } from "matrix-js-sdk/src/models/event";
const RedactedBody = React.forwardRef<any, IBodyProps>(({ mxEvent }, ref) => {
interface IProps {
mxEvent: MatrixEvent;
}
const RedactedBody = React.forwardRef<any, IProps | IBodyProps>(({ mxEvent }, ref) => {
const cli: MatrixClient = useContext(MatrixClientContext);
let text = _t("Message deleted");