mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
await callback in case we need to read, then write from it
This commit is contained in:
parent
3ab5a72221
commit
d64db185bd
@ -115,7 +115,7 @@ export class Account {
|
||||
storage.storeNames.session
|
||||
]);
|
||||
try {
|
||||
callback(txn.session);
|
||||
await callback(txn.session);
|
||||
} catch (err) {
|
||||
txn.abort();
|
||||
throw err;
|
||||
|
Loading…
Reference in New Issue
Block a user