mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
mobile: cleanup logs
This commit is contained in:
committed by
Abdullah Atta
parent
42470d1d67
commit
70eee2a224
@@ -402,11 +402,9 @@ export const useAppEvents = () => {
|
||||
|
||||
const checkAutoBackup = useCallback(async () => {
|
||||
if (verify || syncing) {
|
||||
console.log("backup is waiting");
|
||||
refValues.current.backupDidWait = true;
|
||||
return;
|
||||
}
|
||||
console.log("backup running immediate");
|
||||
const user = await db.user.getUser();
|
||||
if (PremiumService.get() && user) {
|
||||
if (SettingsService.get().reminder === "off") {
|
||||
@@ -427,7 +425,6 @@ export const useAppEvents = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (!verify && !syncing && refValues.current.backupDidWait) {
|
||||
console.log("backup run after wait");
|
||||
refValues.current.backupDidWait = false;
|
||||
checkAutoBackup();
|
||||
}
|
||||
|
||||
@@ -129,7 +129,6 @@ typeof globalThis.statusBar !== "undefined" && statusBar.current.set({date:"",sa
|
||||
};
|
||||
|
||||
setInsets = async (insets: EdgeInsets) => {
|
||||
logger.info("setInsets", insets);
|
||||
await this.doAsync(`
|
||||
if (typeof safeAreaController !== "undefined") {
|
||||
safeAreaController.update(${JSON.stringify(insets)})
|
||||
|
||||
@@ -106,12 +106,6 @@ export const useDragState = create<DragState>(
|
||||
return;
|
||||
}
|
||||
const preset = toolbarConfig?.preset as DragState["preset"];
|
||||
logger.info(
|
||||
"DragState",
|
||||
"Init user toolbar config",
|
||||
preset,
|
||||
toolbarConfig?.config
|
||||
);
|
||||
set({
|
||||
preset: preset,
|
||||
data:
|
||||
|
||||
Reference in New Issue
Block a user