HomePhabricator
Diffusion Comm d0b5bb830de9

[lib] introduce updateThreadStoreThreadInfos

Description

[lib] introduce updateThreadStoreThreadInfos

Summary:
This is the util function that will be called in both web and native persist.js files to update thread infos in the thread store using the new migration approach.

To implement this method I used the preexisting createUpdateDBOpsForThreadStoreThreadInfos util function as inspiration.

Test Plan:
Tested further in the stack and will flesh out test plan there, but at the end of the stack tested new clients, old clients, and the state sync mechanism and everything worked as expected

As I was testing, I logged out the value of stateCheckStatus in handleResponsesClientSocketMessage and kept getting the following log:

stateCheckStatus { status: 'state_validated' }

Reviewers: tomek, kamil

Reviewed By: tomek

Subscribers: ashoat, tomek

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

Details

Provenance
ginsuAuthored on Jun 12 2024, 2:36 AM
Reviewer
tomek
Differential Revision
D12400: [lib] introduce updateThreadStoreThreadInfos
Parents
rCOMM7327c4e2e31a: Revert "[lib][native] Send backup keys in QR auth only if requested"
Branches
Unknown
Tags
Unknown