HomePhabricator
Diffusion Comm 3ac46655bce4

[native] Convert canCreateSidebar function to a hook and use on native

Description

[native] Convert canCreateSidebar function to a hook and use on native

Summary: All three versions of visibleEntryIDs on native were using the same copy pasted code to check if sidebar can be created. This hook allows to get rid of redundant code

Test Plan: Flow, check if creating sidebars works as before when there is no permission or user is blocked

Reviewers: palys-swm, ashoat

Reviewed By: palys-swm, ashoat

Subscribers: ashoat, zrebcu411, Adrian, atul, subnub

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

Details

Provenance
KatPoAuthored on Mar 4 2021, 4:00 AM
Reviewer
tomek
Differential Revision
Restricted Differential Revision
Parents
rCOMM14a10de88e39: Revert "Temporary changes for release"
Branches
Unknown
Tags
Unknown