HomePhabricator
Diffusion Comm 9b9a18ca1180

[lib] Introduce `patchRawThreadInfosWithSpecialRole()`

Description

[lib] Introduce patchRawThreadInfosWithSpecialRole()

Summary: This will be used as part of native migration to add specialRole field to RoleInfos. This function is (RawThreadInfos) => RawThreadInfos which we can pass to updateClientDBThreadStoreThreadInfos as the migrationFunc.

Test Plan: Unit tests. Want to test this behavior outside of the running app so it was easier to ensure correct behavior w/ debugger:

Reviewers: ginsu, tomek

Reviewed By: tomek

Subscribers: ashoat

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

Details

Provenance
atulAuthored on Feb 15 2024, 11:11 AM
Reviewer
tomek
Differential Revision
D11056: [lib] Introduce `patchRawThreadInfosWithSpecialRole()`
Parents
rCOMM3bb83b8f32f9: [identity] rename LogInReservedWalletUser -> RegisterReservedWalletUser
Branches
Unknown
Tags
Unknown