feat: Backup session and restore on database error
This commit is contained in:
parent
4d7d5bf181
commit
2a5c9d0a62
5 changed files with 178 additions and 18 deletions
|
|
@ -37,7 +37,10 @@ Future<DatabaseApi> flutterMatrixSdkDatabaseBuilder(Client client) async {
|
|||
final l10n = lookupL10n(PlatformDispatcher.instance.locale);
|
||||
ClientManager.sendInitNotification(
|
||||
l10n.initAppError,
|
||||
l10n.databaseBuildErrorBody(AppConfig.newIssueUrl.toString()),
|
||||
l10n.databaseBuildErrorBody(
|
||||
AppConfig.newIssueUrl.toString(),
|
||||
e.toString(),
|
||||
),
|
||||
);
|
||||
|
||||
return FlutterHiveCollectionsDatabase.databaseBuilder(client);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue