Page MenuHomePhabricator

[lib] Don't display notFriendNotice for the viewer
ClosedPublic

Authored by ashoat on Sep 30 2024, 9:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 27, 2:22 AM
Unknown Object (File)
Feb 26 2025, 7:18 PM
Unknown Object (File)
Feb 18 2025, 2:44 AM
Unknown Object (File)
Feb 18 2025, 2:44 AM
Unknown Object (File)
Feb 18 2025, 2:44 AM
Unknown Object (File)
Feb 18 2025, 2:43 AM
Unknown Object (File)
Jan 15 2025, 8:41 AM
Unknown Object (File)
Jan 5 2025, 3:47 PM
Subscribers
None

Details

Summary

Prior to the changes in D13540, usePotentialMemberItems never got the viewer as an input, so it didn't need to consider it.

It currently sets notFriendNotice for the viewer, which doesn't make sense. While it's true that the viewer is not a friend with themselves, we have no reason to display that notice to the user.

Depends on D13541

Test Plan

Confirm that notFriendNotice no longer appears for the viewer (the viewer's entry in the list of users that can be added to the chat)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable