status-go/multiaccounts
Jonathan Rainville 635f19e3c7 feat(accounts)_: cherry-pick Persist acceptance of Terms of Use & Privacy policy (#5766) (#5977)
* feat(accounts)_: Persist acceptance of Terms of Use & Privacy policy (#5766)

The original GH issue https://github.com/status-im/status-mobile/issues/21113
came from a request from the Legal team. We must show to Status v1 users the new
terms (Terms of Use & Privacy Policy) right after they upgrade to Status v2
from the stores.

The solution we use is to create a flag in the accounts table, named
hasAcceptedTerms. The flag will be set to true on the first account ever
created in v2 and we provide a native call in mobile/status.go#AcceptTerms,
which allows the client to persist the user's choice in case they are upgrading
(from v1 -> v2, or from a v2 older than this PR).

This solution is not the best because we should store the setting in a separate
table, not in the accounts table.

Related Mobile PR https://github.com/status-im/status-mobile/pull/21124

* fix(test)_: Compare addresses using uppercased strings

---------

Co-authored-by: Icaro Motta <icaro.ldm@gmail.com>
2024-10-23 12:00:15 -03:00
..
accounts chore_: completely remove goerli from the code 2024-10-21 17:30:51 +02:00
common feat: add contact customization color (#4869) 2024-04-03 22:49:57 +08:00
errors feat: `keypair_name` and `last_used_derivation_index` columns added to `accounts` table 2023-03-28 16:19:27 +02:00
migrations feat(accounts)_: cherry-pick Persist acceptance of Terms of Use & Privacy policy (#5766) (#5977) 2024-10-23 12:00:15 -03:00
settings chore_: completely remove goerli from the code 2024-10-21 17:30:51 +02:00
settings_notifications fix: don't return an error on empty rows 2023-01-24 16:26:36 -04:00
settings_wallet feat: implement token management settings for collectibles 2024-01-18 11:46:35 -03:00
database.go feat(accounts)_: cherry-pick Persist acceptance of Terms of Use & Privacy policy (#5766) (#5977) 2024-10-23 12:00:15 -03:00
database_test.go feat(accounts)_: cherry-pick Persist acceptance of Terms of Use & Privacy policy (#5766) (#5977) 2024-10-23 12:00:15 -03:00