famedly / matrix-dart-sdk

Matrix SDK written in pure Dart.
GNU Affero General Public License v3.0
60 stars 31 forks source link

auto clearCache when needed (on broken state) #1873

Closed td-famedly closed 2 months ago

td-famedly commented 3 months ago

Preflight Checklist

Describe your problem

We sometimes have bugs in the SDK which break the database, f.ex we recently had a bug where we would apply older state events (fixed by https://github.com/famedly/matrix-dart-sdk/pull/1846). Unless you clearCache, users are going to keep facing those bugs.

Describe your ideal solution

When we fix such a bug, the SDK should automatically clear the cache on first startup.

Version

No response

Security requirements

No response

Additional Context

No response

herr-rodrigo commented 2 months ago

this is actually already in place by updating the version of the DB.

td-famedly commented 2 months ago

just bump the database version which should do it