A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: reset badge count when entering from bg to fg
ammarahm-ed7f69c5b26806
diff --git a/apps/mobile/app/hooks/use-app-events.js b/apps/mobile/app/hooks/use-app-events.jsindex cc54fc43b..625fb5b9a 100644--- a/apps/mobile/app/hooks/use-app-events.js+++ b/apps/mobile/app/hooks/use-app-events.js@@ -69,6 +69,7 @@ import { clearAppState } from "../screens/editor/tiptap/utils";import { tabBarRef } from "../utils/global-refs";import BackupService from "../services/backup";import { sleep } from "../utils/time";+import notifee from "@notifee/react-native";const SodiumEventEmitter = new NativeEventEmitter(NativeModules.Sodium);export const useAppEvents = () => {@@ -444,6 +445,7 @@ export const useAppEvents = () => {const onAppStateChanged = useCallback(async (state) => {if (state === "active") {+ notifee.setBadgeCount(0);updateStatusBarColor();if (SettingsService.get().appLockMode !== "background" &&