HomePhabricator
Diffusion Comm b449eaf920e8

[server] Use getThreadTypeParentRequirement in createThread

Description

[server] Use getThreadTypeParentRequirement in createThread

Summary:
I first introduced this function in D784 to use with updateThread.

The logic here should be unchanged, except that we will now throw when trying to create a PRIVATE thread with a parent. This was not possible from the API before since PRIVATE threads can only be created programmatically (blocked by newThreadRequestInputValidator), but it's still an improvement.

Test Plan: Flow, careful reading

Reviewers: palys-swm

Reviewed By: palys-swm

Subscribers: KatPo, Adrian, atul

Differential Revision: https://phabricator.ashoat.com/D1002

Details

Provenance
ashoatAuthored on Apr 13 2021, 9:53 AM
Reviewer
tomek
Differential Revision
Restricted Differential Revision
Parents
rCOMMa2c06ce607c9: [server] Make source message unique
Branches
Unknown
Tags
Unknown