From d367d22250e0a990feea487424b7c26b1161a338 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sat, 15 Feb 2020 10:14:45 +0100 Subject: [PATCH] Fix storing olm account --- lib/utils/famedlysdk_store.dart | 2 ++ pubspec.lock | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/utils/famedlysdk_store.dart b/lib/utils/famedlysdk_store.dart index fc6e6bf..528f722 100644 --- a/lib/utils/famedlysdk_store.dart +++ b/lib/utils/famedlysdk_store.dart @@ -76,6 +76,7 @@ class Store extends StoreAPI { : (credentials["prev_batch"]?.isEmpty ?? true) ? null : credentials["prev_batch"], + newOlmAccount: credentials["olmAccount"], ); } @@ -88,6 +89,7 @@ class Store extends StoreAPI { "matrixVersions": client.matrixVersions, "token": client.accessToken, "userID": client.userID, + "olmAccount": client.pickledOlmAccount, }; await setItem(client.clientName, json.encode(credentials)); return; diff --git a/pubspec.lock b/pubspec.lock index 47e09ef..8b10cb0 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -124,8 +124,8 @@ packages: dependency: "direct main" description: path: "." - ref: d2f3377d70511776ebd65ab3ccda5ca9bf248067 - resolved-ref: d2f3377d70511776ebd65ab3ccda5ca9bf248067 + ref: "4d4eabb9a228f46066361b19c50a410afbecc7c9" + resolved-ref: "4d4eabb9a228f46066361b19c50a410afbecc7c9" url: "https://gitlab.com/famedly/famedlysdk.git" source: git version: "0.0.1"