Fix storing olm account

This commit is contained in:
Christian Pauly 2020-02-15 10:14:45 +01:00
parent 8ca42ee6e7
commit d367d22250
2 changed files with 4 additions and 2 deletions

View File

@ -76,6 +76,7 @@ class Store extends StoreAPI {
: (credentials["prev_batch"]?.isEmpty ?? true) : (credentials["prev_batch"]?.isEmpty ?? true)
? null ? null
: credentials["prev_batch"], : credentials["prev_batch"],
newOlmAccount: credentials["olmAccount"],
); );
} }
@ -88,6 +89,7 @@ class Store extends StoreAPI {
"matrixVersions": client.matrixVersions, "matrixVersions": client.matrixVersions,
"token": client.accessToken, "token": client.accessToken,
"userID": client.userID, "userID": client.userID,
"olmAccount": client.pickledOlmAccount,
}; };
await setItem(client.clientName, json.encode(credentials)); await setItem(client.clientName, json.encode(credentials));
return; return;

View File

@ -124,8 +124,8 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
path: "." path: "."
ref: d2f3377d70511776ebd65ab3ccda5ca9bf248067 ref: "4d4eabb9a228f46066361b19c50a410afbecc7c9"
resolved-ref: d2f3377d70511776ebd65ab3ccda5ca9bf248067 resolved-ref: "4d4eabb9a228f46066361b19c50a410afbecc7c9"
url: "https://gitlab.com/famedly/famedlysdk.git" url: "https://gitlab.com/famedly/famedlysdk.git"
source: git source: git
version: "0.0.1" version: "0.0.1"