feat(Messenger): Add Remove Meta AI patch (#4945)

This commit is contained in:
Dawid Krajcarz
2025-05-22 10:35:31 +02:00
committed by GitHub
parent dea7108c45
commit 52b9dc5c9f
10 changed files with 91 additions and 32 deletions
@@ -0,0 +1 @@
<manifest/>
@@ -0,0 +1,15 @@
package app.revanced.extension.messenger.metaai;
@SuppressWarnings("unused")
public class RemoveMetaAIPatch {
public static boolean overrideConfigBool(long id, boolean value) {
// It seems like all configs starting with 363219 are related to Meta AI.
// A list of specific ones that need disabling would probably be better,
// but these config numbers seem to change slightly with each update.
// These first 6 digits don't though.
if (Long.toString(id).startsWith("363219"))
return false;
return value;
}
}