Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix eslint/prettier issues
Browse files Browse the repository at this point in the history
  • Loading branch information
justjanne committed Jan 18, 2023
1 parent c46b10b commit d0b2b4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
15 changes: 7 additions & 8 deletions src/components/views/messages/DisambiguatedProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,15 @@ export default class DisambiguatedProfile extends React.Component<IProps> {
let title: string | undefined;

if (mxid) {
const identifier = UserIdentifier.getDisplayUserIdentifier?.(mxid, {
withDisplayName: true,
roomId: member.roomId
}) ?? mxid;
const identifier =
UserIdentifier.getDisplayUserIdentifier?.(mxid, {
withDisplayName: true,
roomId: member.roomId,
}) ?? mxid;
if (member?.disambiguate) {
mxidElement = (
<span className="mx_DisambiguatedProfile_mxid">{ identifier }</span>
);
mxidElement = <span className="mx_DisambiguatedProfile_mxid">{identifier}</span>;
}
title = _t('%(displayName)s (%(matrixId)s)', {
title = _t("%(displayName)s (%(matrixId)s)", {
displayName: rawDisplayName,
matrixId: identifier,
});
Expand Down
4 changes: 1 addition & 3 deletions src/components/views/rooms/EventTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1091,9 +1091,7 @@ export class UnwrappedEventTile extends React.Component<EventTileProps, IState>
this.context.timelineRenderingType === TimelineRenderingType.Thread
) {
sender = <SenderProfile onClick={this.onSenderProfileClick} mxEvent={this.props.mxEvent} />;
} else if (
this.context.timelineRenderingType === TimelineRenderingType.ThreadsList
) {
} else if (this.context.timelineRenderingType === TimelineRenderingType.ThreadsList) {
sender = <SenderProfile mxEvent={this.props.mxEvent} withTooltip />;
} else {
sender = <SenderProfile mxEvent={this.props.mxEvent} />;
Expand Down

0 comments on commit d0b2b4f

Please sign in to comment.