mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 04:21:57 +03:00
Enums
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
22b029d116
commit
0bf595d8d4
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ import SenderProfile from "../messages/SenderProfile";
|
||||||
import TextualBody from "../messages/TextualBody";
|
import TextualBody from "../messages/TextualBody";
|
||||||
import MImageReplyBody from "../messages/MImageReplyBody";
|
import MImageReplyBody from "../messages/MImageReplyBody";
|
||||||
import * as sdk from '../../../index';
|
import * as sdk from '../../../index';
|
||||||
import { EventType, RelationType } from 'matrix-js-sdk/src/@types/event';
|
import { EventType, MsgType, RelationType } from 'matrix-js-sdk/src/@types/event';
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
mxEvent: MatrixEvent;
|
mxEvent: MatrixEvent;
|
||||||
|
@ -119,7 +119,7 @@ export default class ReplyTile extends React.PureComponent<IProps> {
|
||||||
}
|
}
|
||||||
|
|
||||||
let sender;
|
let sender;
|
||||||
const needsSenderProfile = msgtype !== 'm.image' && tileHandler !== 'messages.RoomCreate' && !isInfoMessage;
|
const needsSenderProfile = msgtype !== MsgType.Image && tileHandler !== EventType.RoomCreate && !isInfoMessage;
|
||||||
|
|
||||||
if (needsSenderProfile) {
|
if (needsSenderProfile) {
|
||||||
sender = <SenderProfile
|
sender = <SenderProfile
|
||||||
|
|
Loading…
Reference in a new issue