HomePhabricator
Diffusion Comm 50a37eef69e4

[lib] Replace `threadHasPermission` with `useThreadHasPermission` in…

Description

[lib] Replace threadHasPermission with useThreadHasPermission in useCanCreateSidebarFromMessage

Summary:
Similar to D11816, but for useCanCreateSidebarFromMessage


Depends on D11816

Test Plan: flow + close reading

Reviewers: ashoat, ginsu, tomek, varun

Reviewed By: ashoat

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