Page MenuHomePhabricator

[lib] Create a thin thread when some users don't support thick threads
ClosedPublic

Authored by tomek on Fri, Sep 20, 4:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 28, 6:17 AM
Unknown Object (File)
Fri, Sep 27, 11:12 PM
Unknown Object (File)
Fri, Sep 27, 4:18 AM
Unknown Object (File)
Fri, Sep 27, 12:50 AM
Unknown Object (File)
Thu, Sep 26, 4:43 PM
Unknown Object (File)
Thu, Sep 26, 2:21 PM
Unknown Object (File)
Wed, Sep 25, 10:39 PM
Unknown Object (File)
Wed, Sep 25, 12:27 AM
Subscribers

Details

Summary

Check if all the users support thick threads and chose thread type accordingly.

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

Test Plan

On both native and web checked if the correct thread type is created, when sending text message, depending on the presence of members in AuxUserStore

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

lib/selectors/thread-selectors.js
465–468

A thin thread could be created from a thick pending thread. The opposite isn't possible now, but for completeness, I'm not making this assumption here.

tomek requested review of this revision.Fri, Sep 20, 5:01 AM
lib/shared/thread-actions-utils.js
140–142

I'll need this check as part of ENG-9330: Fork membership actions for thick threads. Assuming your diff is landed first, I'll try to make a note to factor it out into a utility function before landing

lib/shared/thread-actions-utils.js
140–142

Looks like it's actually factored out in the next diff! (D13405)

kamil added inline comments.
lib/selectors/thread-selectors.js
465–468

Worth adding code comment

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