fix: Use MB and KB instead of MiB and KiB for file sizes

This commit is contained in:
Krille 2024-12-18 09:46:14 +01:00
commit 67dd7f7028
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
4 changed files with 7 additions and 7 deletions

View file

@ -109,7 +109,7 @@ class FlutterHiveCollectionsDatabase extends HiveCollectionsDatabase {
}
@override
int get maxFileSize => supportsFileStoring ? 100 * 1024 * 1024 : 0;
int get maxFileSize => supportsFileStoring ? 100 * 1000 * 1000 : 0;
@override
bool get supportsFileStoring => !kIsWeb;

View file

@ -115,7 +115,7 @@ Future<MatrixSdkDatabase> _constructDatabase(Client client) async {
return MatrixSdkDatabase(
client.clientName,
database: database,
maxFileSize: 1024 * 1024 * 10,
maxFileSize: 1000 * 1000 * 10,
fileStorageLocation: fileStorageLocation?.uri,
deleteFilesAfterDuration: const Duration(days: 30),
);