feat: disable memories snap feed

This commit is contained in:
rhunk
2024-01-23 20:13:21 +01:00
parent 234fe2c2aa
commit eb3ea2675b
3 changed files with 6 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class ConfigurationOverride : Feature("Configuration Override", loadParams = Fea
arrayOf("CUSTOM_AD_TRACKER_URL", "CUSTOM_AD_INIT_SERVER_URL", "CUSTOM_AD_SERVER_URL", "INIT_PRIMARY_URL", "INIT_SHADOW_URL").forEach {
overrideProperty(it, { context.config.global.blockAds.get() }, { "http://127.0.0.1" })
}
overrideProperty("ENABLE_SNAP_FEED", { context.config.global.disableMemoriesSnapFeed.get() }, { false })
classReference.getAsClass()?.hook(
getProperty.getAsString()!!,