nicolium: don't show account lock state on statuses
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -121,6 +121,7 @@ interface IAccount {
|
||||
withDate?: boolean;
|
||||
withLinkToProfile?: boolean;
|
||||
withRelationship?: boolean;
|
||||
withLocked?: boolean;
|
||||
approvalStatus?: StatusApprovalStatus | null;
|
||||
emoji?: string;
|
||||
emojiUrl?: string;
|
||||
@ -149,6 +150,7 @@ const Account = ({
|
||||
withDate = false,
|
||||
withLinkToProfile = true,
|
||||
withRelationship = true,
|
||||
withLocked = true,
|
||||
approvalStatus,
|
||||
emoji,
|
||||
emojiUrl,
|
||||
@ -309,7 +311,7 @@ const Account = ({
|
||||
@{username}
|
||||
</Text>
|
||||
|
||||
{!timestamp && account.locked && (
|
||||
{withLocked && !timestamp && account.locked && (
|
||||
<>
|
||||
<Icon
|
||||
src={require('@phosphor-icons/core/regular/lock.svg')}
|
||||
@ -420,7 +422,7 @@ const Account = ({
|
||||
@{username}
|
||||
</Text>
|
||||
|
||||
{!timestamp && account.locked && (
|
||||
{withLocked && !timestamp && account.locked && (
|
||||
<>
|
||||
<Icon
|
||||
src={require('@phosphor-icons/core/regular/lock.svg')}
|
||||
|
||||
@ -91,6 +91,7 @@ const QuotedStatus: React.FC<IQuotedStatus> = ({ status, onCancel, compose }) =>
|
||||
withRelationship={false}
|
||||
showAccountHoverCard={!compose}
|
||||
withLinkToProfile={!compose}
|
||||
withLocked={false}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
@ -619,6 +619,7 @@ const Status: React.FC<IStatus> = React.memo((props) => {
|
||||
approvalStatus={actualStatus.approval_status}
|
||||
avatarSize={avatarSize}
|
||||
actionAlignment='top'
|
||||
withLocked={false}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
|
||||
@ -111,6 +111,7 @@ const DetailedStatus: React.FC<IDetailedStatus> = ({
|
||||
avatarSize={42}
|
||||
hideActions
|
||||
approvalStatus={actualStatus.approval_status}
|
||||
withLocked={false}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user