mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
feat: implement user toolbar config
This commit is contained in:
@@ -40,6 +40,7 @@ import {
|
||||
ToastEvent
|
||||
} from '../../services/event-manager';
|
||||
import { useEditorStore } from '../../stores/use-editor-store';
|
||||
import { useDragState } from '../../screens/settings/editor/state';
|
||||
|
||||
const SodiumEventEmitter = new NativeEventEmitter(NativeModules.Sodium);
|
||||
export const useAppEvents = () => {
|
||||
@@ -251,6 +252,7 @@ export const useAppEvents = () => {
|
||||
user = await db.user.getUser();
|
||||
await PremiumService.setPremiumStatus();
|
||||
setLastSynced(await db.lastSynced());
|
||||
await useDragState.getState().init();
|
||||
if (!user) {
|
||||
return setLoginMessage();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user