HomePhabricator
Diffusion Comm f55dc60eb786

[native] handle database operations errors in reducer

Description

[native] handle database operations errors in reducer

Summary:
Follow up to D5672.
If there will be an error while processing store operations we want to note this in secure store and kill app, after opening again database will be recreated.

This code introduces CommCoreModule method and calls it when needed.

Test Plan:
Test functionality:

  1. Cause error in store operation - app should be killed
  2. Open again - new database should be created

Reviewers: marcin, bartek, inka

Reviewed By: marcin

Subscribers: ashoat, tomek, atul

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

Details

Provenance
kamilAuthored on Feb 13 2023, 5:41 AM
Reviewer
marcin
Differential Revision
D6713: [native] handle database operations errors in reducer
Parents
rCOMM5dafd580bc70: [native] support operations failure in error handling
Branches
Unknown
Tags
Unknown