Skip to content

Commit

Permalink
refactor: remove dead code (MetaData.username)
Browse files Browse the repository at this point in the history
This is no longer used after 90f4047.
  • Loading branch information
WofWca committed Dec 23, 2024
1 parent 2e96a40 commit 60d4338
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions packages/frontend/scss/message/_metadata.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
margin-bottom: 2px;
}

& > .username {
margin-right: 10px;
}

& > .date {
font-size: 11.5px;
line-height: 16px;
Expand Down
3 changes: 0 additions & 3 deletions packages/frontend/src/components/message/MessageMetaData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import useTranslationFunction from '../../hooks/useTranslationFunction'

type Props = {
padlock: boolean
username?: string
fileMime: string | null
direction?: 'incoming' | 'outgoing'
status: msgStatus
Expand All @@ -25,7 +24,6 @@ export default function MessageMetaData(props: Props) {

const {
padlock,
username,
fileMime,
direction,
status,
Expand All @@ -46,7 +44,6 @@ export default function MessageMetaData(props: Props) {
),
})}
>
{username && <div className='username'>{username}</div>}
{padlock && (
<div
aria-label={tx('a11y_encryption_padlock')}
Expand Down

0 comments on commit 60d4338

Please sign in to comment.