HomePhabricator
Diffusion Comm 903c6924fc04

[lib] Introduce `decodeMinimallyEncodedRawThreadInfo`

Description

[lib] Introduce decodeMinimallyEncodedRawThreadInfo

Summary:
This allows us to "recover" RawThreadInfo from MinimallyEncodedRawThreadInfo encoded via minimallyEncodeRawThreadInfo.

This is *finally* the last utility function that we'll be introducing in this stack. We now have all of the building blocks in place and can make necessary changes to keyserver/native/web.

This function is also "temporary" because in the future MinimallyEncodedRawThreadInfo will effectively be the new RawThreadInfo. Usage of this function will be replaced by refactoring client code to query the minimally encoded permissions directly.


Depends on D9752

Test Plan: Unit test, will add more unit tests at end of stack with "prod data" from my Redux store.

Reviewers: ashoat, ginsu, tomek, rohan

Reviewed By: ashoat

Subscribers: wyilio

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

Details

Provenance
atulAuthored on Nov 7 2023, 11:31 AM
Reviewer
ashoat
Differential Revision
D9755: [lib] Introduce `decodeMinimallyEncodedRawThreadInfo`
Parents
rCOMMb18953404f67: [lib] Introduce `threadPermissionsFromBitmaskHex`
Branches
Unknown
Tags
Unknown