HomePhabricator
Diffusion Comm 31793e3ec987

[lib] Don't display notFriendNotice for the viewer

Description

[lib] Don't display notFriendNotice for the viewer

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)

Reviewers: tomek, kamil, inka

Reviewed By: tomek

Differential Revision: https://phab.comm.dev/D13542

Details

Provenance
ashoatAuthored on Mon, Sep 30, 7:16 PM
Reviewer
tomek
Differential Revision
D13542: [lib] Don't display notFriendNotice for the viewer
Parents
rCOMM2ee243b09b8a: [web] Only call userInfoSelectorForPotentialMembers where it's needed
Branches
Unknown
Tags
Unknown