mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +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
|
storage.storeNames.session
|
||||||
]);
|
]);
|
||||||
try {
|
try {
|
||||||
callback(txn.session);
|
await callback(txn.session);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
txn.abort();
|
txn.abort();
|
||||||
throw err;
|
throw err;
|
||||||
|
Loading…
Reference in New Issue
Block a user