mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-24 22:52:09 -05:00
If IDB is not present, allow app to load as normal
This commit is contained in:
parent
fd7abea536
commit
06b4e9bc87
2 changed files with 4 additions and 2 deletions
2
external/lang
vendored
2
external/lang
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 50570240bc09fc23794bb4452c1c0f35599b3219
|
||||
Subproject commit 9db39a2eecc5fbb7ed06d4598da60700e96e3274
|
|
@ -138,7 +138,9 @@ function Context({ auth, sync, children, dispatcher }: Props) {
|
|||
|
||||
useEffect(() => {
|
||||
(async () => {
|
||||
await client.restore();
|
||||
if (client.db) {
|
||||
await client.restore();
|
||||
}
|
||||
|
||||
if (auth.active) {
|
||||
dispatcher({ type: "QUEUE_FAIL_ALL" });
|
||||
|
|
Loading…
Reference in a new issue