HomePhabricator
Diffusion Comm 4846f866bfaa

[lib] Introduce `rolePermissionToBitmaskHex`

Description

[lib] Introduce rolePermissionToBitmaskHex

Summary:
Introduce rolePermissionToBitmaskHex which turns threadRolePermission string into hex-encoded bitmask.

Context: https://linear.app/comm/issue/ENG-5388/encodepermissions-for-rolepermissionsblob

Test Plan: Unit tests, more testing in upcoming diff which handles decoding back to rolePermissionString

Reviewers: ashoat, ginsu, tomek, rohan

Reviewed By: ashoat

Subscribers: wyilio

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

Details

Provenance
atulAuthored on Nov 1 2023, 6:10 PM
Reviewer
ashoat
Differential Revision
D9662: [lib] Introduce `rolePermissionToBitmaskHex`
Parents
rCOMM94abca6395fb: [keyserver] Call canToggleMessagePin in toggleMessagePinForThread
Branches
Unknown
Tags
Unknown