status-go/api
Jonathan Rainville 132ea05fc8
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 09:53:25 -04:00
..
multiformat Add spiff workflow cmd 2023-03-16 14:31:34 +00:00
.gitignore Fix some tests & upgrade contracts 2021-07-20 10:57:38 +02:00
app_state.go Clean api package (#1055) 2018-06-27 10:11:45 +02:00
app_state_test.go Clean api package (#1055) 2018-06-27 10:11:45 +02:00
backend.go feat: adapt create/restore/login endpoints for keycard usage (#5311) 2024-06-26 13:14:27 +02:00
backend_test.go feat(accounts)_: cherry-pick Persist acceptance of Terms of Use & Privacy policy (#5766) (#5977) 2024-10-23 09:53:25 -04:00
create_account_and_login_test.go chore_: providers re-ordered 2024-10-21 17:30:51 +02:00
default_networks.go chore_: completely remove goerli from the code 2024-10-21 17:30:51 +02:00
default_networks_test.go chore_: completely remove goerli from the code 2024-10-21 17:30:51 +02:00
default_test.go fix(integration-tests)_: add missing HTTPVirtualHosts 2024-07-04 16:14:02 +02:00
defaults.go chore_: completely remove goerli from the code 2024-10-21 17:30:51 +02:00
geth_backend.go feat(accounts)_: cherry-pick Persist acceptance of Terms of Use & Privacy policy (#5766) (#5977) 2024-10-23 09:53:25 -04:00
old_mobile_user_upgrading_from_v1_to_v2_test.go feat(accounts)_: cherry-pick Persist acceptance of Terms of Use & Privacy policy (#5766) (#5977) 2024-10-23 09:53:25 -04:00
seed_phrase_dictionary.go feat_: auto set random wallet emoji when creating account (#5667) 2024-08-07 13:34:04 +01:00
test_helpers.go fix(integration-tests)_: add missing HTTPVirtualHosts 2024-07-04 16:14:02 +02:00
utils.go feat_: log on panic (#5849) 2024-09-27 06:37:32 +08:00
utils_test.go fix(tests): moved test db setup to a common place 't/helpers', created 2023-08-18 09:00:56 +02:00