Improve pills (#6398)

This commit is contained in:
Šimon Brandner 2022-05-05 11:13:09 +02:00 committed by GitHub
parent c79596cfe6
commit b5ac9493dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 176 additions and 184 deletions

View file

@ -31,7 +31,7 @@ import { getUserNameColorClass } from "../../../utils/FormattingUtils";
import { Action } from "../../../dispatcher/actions";
import Spinner from './Spinner';
import ReplyTile from "../rooms/ReplyTile";
import Pill from './Pill';
import Pill, { PillType } from './Pill';
import { ButtonEvent } from './AccessibleButton';
import { getParentEventId, shouldDisplayReply } from '../../../utils/Reply';
import RoomContext from "../../../contexts/RoomContext";
@ -223,7 +223,7 @@ export default class ReplyChain extends React.Component<IProps, IState> {
),
'pill': (
<Pill
type={Pill.TYPE_USER_MENTION}
type={PillType.UserMention}
room={room}
url={makeUserPermalink(ev.getSender())}
shouldShowPillAvatar={SettingsStore.getValue("Pill.shouldShowPillAvatar")}