Skip to content

Commit

Permalink
Merge pull request #2782 from myxmaster/use_lurker_mode_for_memo_in_a…
Browse files Browse the repository at this point in the history
…ctivity

Activity: Hide memos/keysend messages and notes when lurker mode is enabled
  • Loading branch information
kaloudis authored Feb 3, 2025
2 parents b47dad5 + 362cea9 commit 1cc5f25
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions views/Activity/Activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
numberWithCommas,
numberWithDecimals
} from '../../utils/UnitsUtils';
import PrivacyUtils from '../../utils/PrivacyUtils';

import ActivityStore from '../../stores/ActivityStore';
import FiatStore from '../../stores/FiatStore';
Expand Down Expand Up @@ -113,7 +114,9 @@ const ActivityListItem = React.memo(
{keysendMessageOrMemo ? ': ' : ''}
{keysendMessageOrMemo ? (
<Text style={{ fontStyle: 'italic' }}>
{keysendMessageOrMemo}
{PrivacyUtils.sensitiveValue(
keysendMessageOrMemo
)?.toString()}
</Text>
) : (
''
Expand All @@ -133,7 +136,9 @@ const ActivityListItem = React.memo(
{keysendMessageOrMemo ? ': ' : ''}
{keysendMessageOrMemo ? (
<Text style={{ fontStyle: 'italic' }}>
{keysendMessageOrMemo}
{PrivacyUtils.sensitiveValue(
keysendMessageOrMemo
)?.toString()}
</Text>
) : (
''
Expand Down Expand Up @@ -301,8 +306,12 @@ const ActivityListItem = React.memo(
ellipsizeMode="tail"
>
{note.length > 150
? `${note.substring(0, 150)}...`
: note}
? `${PrivacyUtils.sensitiveValue(
note.substring(0, 150)
)?.toString()}...`
: PrivacyUtils.sensitiveValue(
note
)?.toString()}
</ListItem.Subtitle>
</View>
)}
Expand Down

0 comments on commit 1cc5f25

Please sign in to comment.