fix(core): init native

This commit is contained in:
rhunk
2024-02-06 00:22:10 +01:00
parent a925b3563f
commit 22b020f88d

View File

@ -173,7 +173,7 @@ class SnapEnhance {
private fun initNative() {
// don't initialize native when not logged in
if (!appContext.database.hasArroyo()) return
if (appContext.androidContext.getSharedPreferences("user_session_shared_pref", 0).getString("key_user_id", null) == null) return
if (appContext.config.experimental.nativeHooks.globalState != true) return
lateinit var unhook: () -> Unit