-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lib] Update
permissionsToBitmask
to permissionsToBitmaskHex
Summary: Summmary: Was initially planning (and drafting) to encode the `BigInt` as `base64` to be included in stringified JSON. However, as I jotted down ([ENG-5373 : Use "bitmask" approach to encoding ThreadPermissions and Role permissions blobs](https://linear.app/comm/issue/ENG-5373/use-bitmask-approach-to-encoding-threadpermissions-and-role)), decided to encode as hex instead. Update `permissionsToBitmask` and corresponding `hasPermission` to return and accept `string` instead of `bigint`. Test Plan: Unit test, will add a few more. Reviewers: ashoat, ginsu, tomek, rohan Reviewed By: tomek Subscribers: wyilio Differential Revision: https://phab.comm.dev/D9589
- Loading branch information
1 parent
433111d
commit 5ea56c5
Showing
2 changed files
with
10 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters