HomePhabricator
Diffusion Comm 9705de4522f9

[web] Clear database on non-threadStore ops fail

Description

[web] Clear database on non-threadStore ops fail

Summary:
ENG-7587 : Should we clear the web DB when some operations fail?
Clean the db on other (non-draft, non-report) ops.

Depends on D11539

Test Plan: Add throw new Error() on message store rekey op. Try sending a message. App displayed an alert and reloaded.

Reviewers: kamil, marcin

Reviewed By: kamil

Subscribers: ashoat, tomek

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

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Apr 2 2024, 7:08 AM
Reviewer
kamil
Differential Revision
D11544: [web] Clear database on non-threadStore ops fail
Parents
rCOMM22f31403e96a: [web] Persist messageStore in db
Branches
Unknown
Tags
Unknown

Event Timeline