This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,23 @@
// Metro module 16766 (f16767).
import GatewayConnectionStore from "../../gateway/GatewayConnectionStore";
import AuthenticationStore from "../../../stores/AuthenticationStore";
import AppStateStore from "../../../stores/native/AppStateStore";
import Logger from "../../debug/Logger";
import DatabaseManager from "../../app_database/system/DatabaseManager";
import { backgroundSync } from "../../app_database/background_sync/native/BackgroundSync";
let c12075_6 = new Logger("BackgroundSync");
module.exports = (c23407_0) => {
let r27;
if (AppStateStore.getState() === "active") {
r27 = Promise.resolve();
} else {
if (!(GatewayConnectionStore.isConnected() || GatewayConnectionStore.isTryingToConnect())) {
DatabaseManager.carefullyOpenDatabase(AuthenticationStore.getId());
}
r27 = new Promise((resolve) => {
c12075_6.log("Executing BackgroundSync with ", c23407_0);
backgroundSync({}).then(resolve);
});
}
return r27;
};