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
Unknown Object (File)
Wed, Dec 18, 11:53 AM
Unknown Object (File)
Wed, Dec 18, 11:53 AM
Unknown Object (File)
Wed, Dec 18, 11:52 AM
Unknown Object (File)
Wed, Dec 18, 11:52 AM
Unknown Object (File)
Mon, Nov 25, 2:14 AM
Unknown Object (File)
Nov 21 2024, 5:41 PM
Unknown Object (File)
Nov 19 2024, 9:12 AM
Unknown Object (File)
Nov 10 2024, 4:20 PM
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