From 74bfc10e3698752bb6143429da597685ecbde4f6 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Mon, 2 Jan 2023 13:45:27 -0600 Subject: [PATCH] Dont mute posts for a user when viewing their profile --- src/view/com/posts/FeedItem.tsx | 11 +++++++++-- src/view/screens/Profile.tsx | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx index 3916ea453f..150143a269 100644 --- a/src/view/com/posts/FeedItem.tsx +++ b/src/view/com/posts/FeedItem.tsx @@ -24,9 +24,11 @@ import {usePalette} from '../../lib/hooks/usePalette' export const FeedItem = observer(function ({ item, showReplyLine, + ignoreMuteFor, }: { item: FeedItemModel showReplyLine?: boolean + ignoreMuteFor?: string }) { const store = useStores() const theme = useTheme() @@ -110,7 +112,11 @@ export const FeedItem = observer(function ({ return ( <> {isChild && !item._isThreadChild && item.replyParent ? ( - + ) : undefined} {item._isThreadChild && ( @@ -201,7 +207,8 @@ export const FeedItem = observer(function ({ )} - {item.post.author.viewer?.muted ? ( + {item.post.author.viewer?.muted && + ignoreMuteFor !== item.post.author.did ? ( This post is by a muted account. diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx index 437f5f4a70..8dd2dbe336 100644 --- a/src/view/screens/Profile.tsx +++ b/src/view/screens/Profile.tsx @@ -142,7 +142,7 @@ export const Profile = observer(({navIdx, visible, params}: ScreenParams) => { if (item === END_ITEM) { return - end of feed - } - return + return } } else if (uiState.feed.isEmpty) { items = items.concat([EMPTY_ITEM])