Fix storing olm account

This commit is contained in:
Christian Pauly 2020-02-15 10:14:45 +01:00
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)
? 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;