Page MenuHomePhabricator

[lib] Exclude users that don't support thick threads from results
ClosedPublic

Authored by tomek on Fri, Sep 20, 4:55 AM.
Tags
None
Referenced Files
F2842199: D13405.id44365.diff
Sun, Sep 29, 12:27 PM
F2840968: D13405.id44399.diff
Sun, Sep 29, 8:42 AM
F2839570: D13405.id44364.diff
Sun, Sep 29, 2:20 AM
Unknown Object (File)
Fri, Sep 27, 5:31 PM
Unknown Object (File)
Fri, Sep 27, 2:30 AM
Unknown Object (File)
Fri, Sep 27, 12:17 AM
Unknown Object (File)
Thu, Sep 26, 8:21 AM
Unknown Object (File)
Wed, Sep 25, 10:09 PM
Subscribers

Details

Summary

When a user can't be added to thick thread, they shouldn't be included in search results.

https://linear.app/comm/issue/ENG-9257/limit-chat-candidates-to-users-who-are-registered-with-identity

Depends on D13404

Test Plan

Checked that the user who don't support thick threads aren't shown in add member modals of thick threads.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Fri, Sep 20, 5:12 AM
lib/shared/search-utils.js
166 ↗(On Diff #44363)

In what cases is threadType not set here?

lib/shared/search-utils.js
166 ↗(On Diff #44363)

This happens in chat-thread-composer.react.js and message-list-container.react.js where we don't know what the resulting thread type would be. In these cases, we shouldn't filter out users who don't have CSAT because we're determining the thread thickness later, based on the presence of the CSAT.

lib/shared/search-utils.js
166 ↗(On Diff #44363)

Thanks for explaining!

This revision is now accepted and ready to land.Fri, Sep 20, 6:58 AM