HomePhabricator
Diffusion Comm 8779efea689f

[lib] Add runtime checks to `minimallyEncode*` utils to make sure argument…

Description

[lib] Add runtime checks to minimallyEncode* utils to make sure argument isn't already minimally encoded

Summary:
Similar to what we did in D10325 to minimallyEncodeThreadCurrentUserInfo, but for the rest of the minimallyEncode* utilities in minimally-encoded-thread-permissions-types.

These are more of a precaution than anything else.

Test Plan:
Unit tests continue to pass.
Able to use app, go through Redux migration, etc without issue.

Reviewers: ashoat, ginsu, tomek, rohan

Reviewed By: ashoat

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