Page MenuHomePhabricator

[native][web] Only show viewer in chat composer results when empty
ClosedPublic

Authored by ashoat on Sep 30 2024, 10:00 PM.
Tags
None
Referenced Files
F3311504: D13543.id44724.diff
Tue, Nov 19, 9:12 AM
Unknown Object (File)
Sun, Nov 10, 4:20 PM
Unknown Object (File)
Fri, Nov 8, 3:01 AM
Unknown Object (File)
Fri, Nov 8, 3:01 AM
Unknown Object (File)
Fri, Nov 1, 4:46 PM
Unknown Object (File)
Fri, Nov 1, 5:37 AM
Unknown Object (File)
Thu, Oct 31, 3:21 AM
Unknown Object (File)
Oct 20 2024, 3:03 AM
Subscribers
None

Details

Summary

If the user has selected somebody other than themselves to chat with, we'll exclude the viewer from the results.

In other words, we'll only show the viewer as an option to themselves when the list is empty.

We're doing this because we want to treat this case similarly to when the viewer selects a non-friend: instead of letting them include themselves in the list, we will just open directly to the PRIVATE if the user select themselves at the start (D13545), and not list them as an option if they select somebody else at the start (this diff).

Depends on D13542

Test Plan

Confirm that if the viewer adds somebody to the list of pending members, they can no longer see themselves in the list of potential pending members

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage