Signal-iOS/SignalServiceKit
Evan Hahn 4da042c1d5
Clean up database corruption storage code
_This change should have no user impact._

The database corruption flag lives on `UserDefaults`. Currently, this
flag is controlled through `SSKPreferences`, but I kinda think that's
the wrong place—database corruption isn't really a user preference.

This moves it into its own file, tests it, and [drops booleans in favor
of an enum][0]. I think this is useful on its own, but also prepares us
for an upcoming change.

[0]: https://www.luu.io/posts/dont-use-booleans
2022-09-23 18:19:02 +00:00
..
protobuf Show active group stories in the conversation picker 2022-09-22 14:53:29 -07:00
Resources Add lastReceivedStoryTimestamp to schema.sql 2022-09-22 17:05:06 -07:00
src Clean up database corruption storage code 2022-09-23 18:19:02 +00:00
tests Clean up database corruption storage code 2022-09-23 18:19:02 +00:00
.clang-format Update clang-format with AllowShortEnumsOnASingleLine: false 2022-03-14 11:20:20 -07:00
.gitignore
.travis.yml
SignalServiceKit-Prefix.pch SignalServiceKit: no longer a separate pod 2022-08-05 16:14:15 -05:00
SignalServiceKit.h Move message padding to Data 2022-09-15 12:50:20 -05:00