diff --git a/lib/utils/matrix_sdk_extensions.dart/fluffybox_database.dart b/lib/utils/matrix_sdk_extensions.dart/fluffybox_database.dart index 29f785b5..b174a06f 100644 --- a/lib/utils/matrix_sdk_extensions.dart/fluffybox_database.dart +++ b/lib/utils/matrix_sdk_extensions.dart/fluffybox_database.dart @@ -81,7 +81,11 @@ class FlutterFluffyBoxDatabase extends FluffyBoxDatabase { if (!kIsWeb) { Directory directory; try { - directory = await getApplicationSupportDirectory(); + if (Platform.isLinux) { + directory = await getApplicationSupportDirectory(); + } else { + directory = await getApplicationDocumentsDirectory(); + } } catch (_) { try { directory = await getLibraryDirectory(); diff --git a/pubspec.yaml b/pubspec.yaml index 371f96e5..5309de65 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: fluffychat description: Chat with your friends. publish_to: none -version: 1.0.0+1772 +version: 1.0.1+1773 environment: sdk: ">=2.11.0 <3.0.0"