status-go/api
Icaro Motta 14c996158c
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

---------

Co-authored-by: Igor Sirotin <sirotin@status.im>
2024-08-26 10:56:39 -03: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)_: Persist acceptance of Terms of Use & Privacy policy (#5766) 2024-08-26 10:56:39 -03:00
create_account_and_login_test.go fix: proper usage of CreateAccount RootDataDir (#5284) 2024-06-05 14:03:34 +01:00
default_networks.go feat!: drive proxy stage name from the client 2024-08-14 19:56:30 +01:00
default_networks_test.go feat!: drive proxy stage name from the client 2024-08-14 19:56:30 +01:00
default_test.go fix(integration-tests)_: add missing HTTPVirtualHosts 2024-07-04 16:14:02 +02:00
defaults.go feat!: drive proxy stage name from the client 2024-08-14 19:56:30 +01:00
geth_backend.go feat(accounts)_: Persist acceptance of Terms of Use & Privacy policy (#5766) 2024-08-26 10:56:39 -03:00
messenger_raw_message_resend_test.go fix(communities)_: validate if RawMessage from DB is valid before sending it 2024-07-23 19:54:39 +02:00
old_mobile_user_upgrading_from_v1_to_v2_test.go feat(accounts)_: Persist acceptance of Terms of Use & Privacy policy (#5766) 2024-08-26 10:56:39 -03:00
test_helpers.go fix(integration-tests)_: add missing HTTPVirtualHosts 2024-07-04 16:14:02 +02:00
utils.go synchronize display name (#2989) 2022-12-29 14:16:19 +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