HomePhabricator
Diffusion Comm 727b3b565aa0

[lib] Introduce `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck`

Description

[lib] Introduce threadIsWithBlockedUserOnlyWithoutAdminRoleCheck

Summary:
Introduce a variant of threadIsWithBlockedUserOnly that only accepts ThreadInfo and doesn't take skipMemberAdminRoleCheck as an option. This will help us remove ThreadInfo from memberHasAdminPowers.memberInfo argument without that invariant.

There's currently a lot of overlap between threadIsWithBlockedUserOnly and threadIsWithBlockedUserOnlyWithoutAdminRoleCheck. Will pull out the common logic into separate function after sorting out the flow stuff.


Depends on D12288

Test Plan: flow + close reading + some basic logging

Reviewers: ashoat, ginsu, tomek, varun

Reviewed By: tomek

Differential Revision: https://phab.comm.dev/D12289

Details

Provenance
atulAuthored on Jun 16 2024, 5:09 PM
Reviewer
tomek
Differential Revision
D12289: [lib] Introduce `threadIsWithBlockedUserOnlyWithoutAdminRoleCheck`
Parents
rCOMM8841136a2935: [lib] Consume `useThreadFrozenDueToViewerBlock` in `web/ChatInputBar`
Branches
Unknown
Tags
Unknown