Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32193650
D13542.1765098984.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
979 B
Referenced Files
None
Subscribers
None
D13542.1765098984.diff
View Options
diff --git a/lib/shared/search-utils.js b/lib/shared/search-utils.js
--- a/lib/shared/search-utils.js
+++ b/lib/shared/search-utils.js
@@ -246,6 +246,7 @@
userInfos,
]);
+ const viewerID = useSelector(state => state.currentUserInfo?.id);
const sortedMembers = React.useMemo(() => {
const nonFriends = [];
const blockedUsers = [];
@@ -314,7 +315,8 @@
}
} else if (
!containingThreadInfo &&
- relationshipStatus !== userRelationshipStatus.FRIEND
+ relationshipStatus !== userRelationshipStatus.FRIEND &&
+ result.id !== viewerID
) {
notice = notFriendNotice;
alert = {
@@ -336,7 +338,13 @@
return result;
},
);
- }, [containingThreadInfo, filteredUserResults, parentThreadInfo, threadType]);
+ }, [
+ containingThreadInfo,
+ filteredUserResults,
+ parentThreadInfo,
+ threadType,
+ viewerID,
+ ]);
return sortedMembers;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 7, 9:16 AM (15 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5843227
Default Alt Text
D13542.1765098984.diff (979 B)
Attached To
Mode
D13542: [lib] Don't display notFriendNotice for the viewer
Attached
Detach File
Event Timeline
Log In to Comment