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
Unknown Object (File)
Wed, Dec 18, 12:08 PM
Unknown Object (File)
Wed, Dec 18, 12:08 PM
Unknown Object (File)
Wed, Dec 18, 12:08 PM
Unknown Object (File)
Wed, Dec 18, 12:08 PM
Unknown Object (File)
Wed, Dec 18, 12:08 PM
Unknown Object (File)
Sat, Dec 7, 11:56 AM
Unknown Object (File)
Nov 22 2024, 3:51 AM
Unknown Object (File)
Nov 17 2024, 3:33 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