HomePhabricator
Diffusion Comm be7c5a70c36c

[native] Set the DB version after registration

Description

[native] Set the DB version after registration

Summary:
When a new account is created, we have to store the version in the DB so that it is included in a backup.
We don't need to set the version when a user logs in, because we can assume that eventually, we will restore the data from a backup - and that includes the version.

https://linear.app/comm/issue/ENG-7006/back-up-redux-version

Depends on D11937

Test Plan: Register a new user and check if the version is present in Redux and in the DB.

Reviewers: kamil, marcin, inka

Reviewed By: kamil

Subscribers: ashoat

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

Details

Provenance
tomekAuthored on May 8 2024, 6:59 AM
Reviewer
kamil
Differential Revision
D11942: [native] Set the DB version after registration
Parents
rCOMM67f24417b28b: [lib] Update DB version while running a migration
Branches
Unknown
Tags
Unknown