diff --git a/app/src/main/java/com/grindrplus/hooks/EmptyCalls.kt b/app/src/main/java/com/grindrplus/hooks/EmptyCalls.kt index e34e7c3..e4060fa 100644 --- a/app/src/main/java/com/grindrplus/hooks/EmptyCalls.kt +++ b/app/src/main/java/com/grindrplus/hooks/EmptyCalls.kt @@ -1,4 +1,19 @@ package com.grindrplus.hooks -class EmptyCalls { +import com.grindrplus.utils.Hook +import com.grindrplus.utils.HookStage +import com.grindrplus.utils.hook + +class EmptyCalls : Hook( + "Video calls", + "Allow video calls on empty chats" +) { + private val individualChatNavViewModel = "J9.a" + + override fun init() { + findClass(individualChatNavViewModel) // isTalkBefore() + .hook("z", HookStage.BEFORE) { param -> + param.setResult(true) + } + } } \ No newline at end of file diff --git a/app/src/main/java/com/grindrplus/utils/HookManager.kt b/app/src/main/java/com/grindrplus/utils/HookManager.kt index 756c360..ef1c462 100644 --- a/app/src/main/java/com/grindrplus/utils/HookManager.kt +++ b/app/src/main/java/com/grindrplus/utils/HookManager.kt @@ -9,6 +9,7 @@ import com.grindrplus.hooks.ChatTerminal import com.grindrplus.hooks.DisableAnalytics import com.grindrplus.hooks.DisableBoosting import com.grindrplus.hooks.DisableUpdates +import com.grindrplus.hooks.EmptyCalls import com.grindrplus.hooks.EnableUnlimited import com.grindrplus.hooks.ExpiringPhotos import com.grindrplus.hooks.Favorites @@ -59,7 +60,8 @@ class HookManager { SignatureSpoofer(), UnlimitedTaps(), UnlimitedAlbums(), - QuickBlock() + QuickBlock(), + EmptyCalls() ) hookList.forEach { hook ->