Seventh batch of burning
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
914de71e9c
commit
6e14c290c8
|
@ -20,7 +20,7 @@ import { replaceableComponent } from "../../../utils/replaceableComponent";
|
||||||
import Tooltip from './Tooltip';
|
import Tooltip from './Tooltip';
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
helpText: string;
|
helpText: React.ReactNode | string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IState {
|
interface IState {
|
||||||
|
|
|
@ -24,7 +24,7 @@ import { MatrixEvent } from "matrix-js-sdk/src/models/event";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
mxEvent: MatrixEvent;
|
mxEvent: MatrixEvent;
|
||||||
onClick(): void;
|
onClick?(): void;
|
||||||
enableFlair: boolean;
|
enableFlair: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,13 @@ import { StaticNotificationState } from "../../../stores/notifications/StaticNot
|
||||||
import NotificationBadge from "./NotificationBadge";
|
import NotificationBadge from "./NotificationBadge";
|
||||||
import { ComposerInsertPayload } from "../../../dispatcher/payloads/ComposerInsertPayload";
|
import { ComposerInsertPayload } from "../../../dispatcher/payloads/ComposerInsertPayload";
|
||||||
import { Action } from '../../../dispatcher/actions';
|
import { Action } from '../../../dispatcher/actions';
|
||||||
|
import MemberAvatar from '../avatars/MemberAvatar';
|
||||||
|
import SenderProfile from '../messages/SenderProfile';
|
||||||
|
import MessageTimestamp from '../messages/MessageTimestamp';
|
||||||
|
import TooltipButton from '../elements/TooltipButton';
|
||||||
|
import ReadReceiptMarker from "./ReadReceiptMarker";
|
||||||
|
import MessageActionBar from "../messages/MessageActionBar";
|
||||||
|
import ReactionsRow from '../messages/ReactionsRow';
|
||||||
|
|
||||||
const eventTileTypes = {
|
const eventTileTypes = {
|
||||||
[EventType.RoomMessage]: 'messages.MessageEvent',
|
[EventType.RoomMessage]: 'messages.MessageEvent',
|
||||||
|
@ -666,7 +673,6 @@ export default class EventTile extends React.Component<IProps, IState> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const ReadReceiptMarker = sdk.getComponent('rooms.ReadReceiptMarker');
|
|
||||||
const avatars = [];
|
const avatars = [];
|
||||||
const receiptOffset = 15;
|
const receiptOffset = 15;
|
||||||
let left = 0;
|
let left = 0;
|
||||||
|
@ -733,7 +739,7 @@ export default class EventTile extends React.Component<IProps, IState> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
onSenderProfileClick = event => {
|
onSenderProfileClick = () => {
|
||||||
const mxEvent = this.props.mxEvent;
|
const mxEvent = this.props.mxEvent;
|
||||||
dis.dispatch<ComposerInsertPayload>({
|
dis.dispatch<ComposerInsertPayload>({
|
||||||
action: Action.ComposerInsert,
|
action: Action.ComposerInsert,
|
||||||
|
@ -841,10 +847,6 @@ export default class EventTile extends React.Component<IProps, IState> {
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const MessageTimestamp = sdk.getComponent('messages.MessageTimestamp');
|
|
||||||
const SenderProfile = sdk.getComponent('messages.SenderProfile');
|
|
||||||
const MemberAvatar = sdk.getComponent('avatars.MemberAvatar');
|
|
||||||
|
|
||||||
//console.info("EventTile showUrlPreview for %s is %s", this.props.mxEvent.getId(), this.props.showUrlPreview);
|
//console.info("EventTile showUrlPreview for %s is %s", this.props.mxEvent.getId(), this.props.showUrlPreview);
|
||||||
|
|
||||||
const content = this.props.mxEvent.getContent();
|
const content = this.props.mxEvent.getContent();
|
||||||
|
@ -987,7 +989,6 @@ export default class EventTile extends React.Component<IProps, IState> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const MessageActionBar = sdk.getComponent('messages.MessageActionBar');
|
|
||||||
const actionBar = !isEditing ? <MessageActionBar
|
const actionBar = !isEditing ? <MessageActionBar
|
||||||
mxEvent={this.props.mxEvent}
|
mxEvent={this.props.mxEvent}
|
||||||
reactions={this.state.reactions}
|
reactions={this.state.reactions}
|
||||||
|
@ -1027,7 +1028,6 @@ export default class EventTile extends React.Component<IProps, IState> {
|
||||||
{ 'requestLink': (sub) => <a onClick={this.onRequestKeysClick}>{ sub }</a> },
|
{ 'requestLink': (sub) => <a onClick={this.onRequestKeysClick}>{ sub }</a> },
|
||||||
);
|
);
|
||||||
|
|
||||||
const TooltipButton = sdk.getComponent('elements.TooltipButton');
|
|
||||||
const keyRequestInfo = isEncryptionFailure && !isRedacted ?
|
const keyRequestInfo = isEncryptionFailure && !isRedacted ?
|
||||||
<div className="mx_EventTile_keyRequestInfo">
|
<div className="mx_EventTile_keyRequestInfo">
|
||||||
<span className="mx_EventTile_keyRequestInfo_text">
|
<span className="mx_EventTile_keyRequestInfo_text">
|
||||||
|
@ -1038,7 +1038,6 @@ export default class EventTile extends React.Component<IProps, IState> {
|
||||||
|
|
||||||
let reactionsRow;
|
let reactionsRow;
|
||||||
if (!isRedacted) {
|
if (!isRedacted) {
|
||||||
const ReactionsRow = sdk.getComponent('messages.ReactionsRow');
|
|
||||||
reactionsRow = <ReactionsRow
|
reactionsRow = <ReactionsRow
|
||||||
mxEvent={this.props.mxEvent}
|
mxEvent={this.props.mxEvent}
|
||||||
reactions={this.state.reactions}
|
reactions={this.state.reactions}
|
||||||
|
|
Loading…
Reference in New Issue