Page MenuHomePhabricator

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

Authored by tomek on Sep 20 2024, 4:44 AM.
Tags
None
Referenced Files
F3299780: D13404.id44396.diff
Sun, Nov 17, 3:33 PM
F3299529: D13404.diff
Sun, Nov 17, 1:02 PM
Unknown Object (File)
Fri, Nov 8, 1:42 AM
Unknown Object (File)
Fri, Nov 8, 1:42 AM
Unknown Object (File)
Fri, Nov 8, 1:42 AM
Unknown Object (File)
Fri, Nov 8, 1:33 AM
Unknown Object (File)
Fri, Oct 25, 2:38 AM
Unknown Object (File)
Oct 15 2024, 9:39 PM
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.Sep 20 2024, 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.Sep 20 2024, 6:55 AM