Skip to content

Commit

Permalink
GrindrPlus: Fix send video once for all
Browse files Browse the repository at this point in the history
  • Loading branch information
R0rt1z2 committed Jul 19, 2024
1 parent 1abcf66 commit 96ccec8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/grindrplus/hooks/EnableUnlimited.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class EnableUnlimited : Hook(
"m", HookStage.BEFORE
) { param ->
val disallowedFeatures = setOf("DisableScreenshot")
param.result = param.arg(0) !in disallowedFeatures
param.result = param.args[0].toString() !in disallowedFeatures
}

userSessionClass.hook( // isNoXtraUpsell()
Expand Down
11 changes: 0 additions & 11 deletions app/src/main/java/com/grindrplus/hooks/FeatureGranting.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class FeatureGranting : Hook(
"Grant all Grindr features"
) {
private val featureFlags = "i7.h"
private val featureModel = "g9.o"
private val upsellsV8Model = "com.grindrapp.android.model.UpsellsV8"
private val insertsModel = "com.grindrapp.android.model.Inserts"
private val settingDistanceVisibilityViewModel =
Expand All @@ -25,16 +24,6 @@ class FeatureGranting : Hook(

val featureFlagsClass = findClass(featureFlags)

findClass(featureModel)
.hook("e", HookStage.BEFORE) { param ->
param.result = true
}

findClass(featureModel)
.hook("f", HookStage.BEFORE) { param ->
param.result = true
}

featureFlagsClass.hook(
"isEnabled", HookStage.BEFORE
) { param ->
Expand Down

0 comments on commit 96ccec8

Please # to comment.