From a7dda5441481356964b4f01abdfafdd0bf47ce2d Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 23 Nov 2022 15:55:01 +0100 Subject: [PATCH] chore: Update readme with new database --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a6c0971f..cf3e557c 100644 --- a/README.md +++ b/README.md @@ -36,9 +36,9 @@ The SDK works better with a database. Otherwise it has no persistence. For this ```dart final client = Client( "HappyChat", - databaseBuilder: (Client client) async { - await Hive.init('/path/to/your/storage'); - final db = FamedlySdkHiveDatabase(client.clientName); + databaseBuilder: (_) async { + final dir = await getApplicationSupportDirectory(); // Recommend path_provider package + final db = HiveCollectionsDatabase('matrix_example_chat', dir.path); await db.open(); return db; },