commit 853580f2f6084e66df2f24c655a54fd26199f458
parent 114dccb7c2eaf92b70f95dd6bf52275dec3eef9a
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Tue, 19 Mar 2024 22:21:41 +0100

refactor: notifications

Diffstat:
Mcore/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/messaging/Notifications.kt | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/messaging/Notifications.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/messaging/Notifications.kt @@ -478,7 +478,6 @@ class Notifications : Feature("Notifications", loadParams = FeatureLoadParams.IN } findClass("com.google.firebase.messaging.FirebaseMessagingService").run { - val states by context.config.messaging.notificationBlacklist methods.first { it.declaringClass == this && it.returnType == Void::class.javaPrimitiveType && it.parameterCount == 1 && it.parameterTypes[0] == Intent::class.java } .hook(HookStage.BEFORE) { param -> val intent = param.argNullable<Intent>(0) ?: return@hook