HomePhabricator
Diffusion Comm fac4acc494a5

[lib] handle `policies_not_accepted` error on client

Description

[lib] handle policies_not_accepted error on client

Summary:
Catch policies_not_accepted ServerError on both HTTP request and WebSocket call and dispatch redux action which containing information that policies needs to be acknowledged

Context in ENG-2363.

Test Plan: Connect to keyserver from account without accepted policies and check if action was properly dispatched after interaction with keyserver on both mobile/web (testing both HTTP and WebSocket connection).

Reviewers: tomek, atul

Reviewed By: tomek

Subscribers: ashoat

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

Details

Provenance
kamilAuthored on Dec 2 2022, 7:23 AM
Reviewer
tomek
Differential Revision
D5827: [lib] handle `policies_not_accepted` error on client
Parents
rCOMM685c6e10f284: [lib] client side logic for handling policy acknowledgment
Branches
Unknown
Tags
Unknown