HomePhabricator
Diffusion Comm c861459ba72c

[lib] Move `getRolePermissionBlobs` to `lib`

Description

[lib] Move getRolePermissionBlobs to lib

Summary:
We're going to use getRolePermissionBlobs to calculate thread permissions on the client "from first principles" (ie based on threadTypes and getRolePermissionBlobs without needing roles/permissions from the keyserver).

This diff just moves getRolePermissionBlobs to lib so we can use it from native.

Test Plan:
This should be a super straightforward drag and drop diff.

However, since it's consumed by updateRolesAndPermissionsForAllThreads I kicked off a updateRolesAndPermissionsForAllThreads migration on keyserver and made sure that roles/permissions continued to be calculated as expected... though it would be very surprising if it didn't.

Reviewers: ginsu, ashoat

Reviewed By: ashoat

Subscribers: tomek

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

Details

Provenance
atulAuthored on Apr 23 2023, 8:58 PM
Reviewer
ashoat
Differential Revision
D7581: [lib] Move `getRolePermissionBlobs` to `lib`
Parents
rCOMM1e0c66a23f87: [native] Add selection state to KeyserverSelection
Branches
Unknown
Tags
Unknown