Page MenuHomePhabricator

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

Authored by ashoat on Mon, Sep 30, 9:56 PM.
Tags
None
Referenced Files
F2860725: D13542.diff
Tue, Oct 1, 7:31 PM
F2859832: D13542.id.diff
Tue, Oct 1, 2:42 PM
F2859627: D13542.diff
Tue, Oct 1, 2:21 PM
F2853634: D13542.id44723.diff
Mon, Sep 30, 10:29 PM
F2853534: D13542.id.diff
Mon, Sep 30, 10:27 PM
F2853378: D13542.diff
Mon, Sep 30, 10:11 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
No Lint Coverage
Unit
No Test Coverage