You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use canUsePrivateNotes pattern instead of beta flag
Replace isBetaEnabled(CONST.BETAS.PRIVATE_NOTES) with a
Permissions.canUsePrivateNotes() function that returns false,
following the same pattern as canUseLinkPreviews. This avoids
needing a backend beta configuration.
Co-authored-by: Cong Pham <suneox@users.noreply.github.com>
// Do not fetch private notes if the beta is disabled, isLoadingPrivateNotes is already defined, the network is offline, or if the report is a self DM.
// Do not fetch private notes if the feature is disabled, isLoadingPrivateNotes is already defined, the network is offline, or if the report is a self DM.
0 commit comments