commit 292ca926d45ee3e7b76f27b29224fe2318289a86 parent 95eb4e89f634707ca668740a60940d2898ade9ab Author: rhunk <101876869+rhunk@users.noreply.github.com> Date: Fri, 19 Apr 2024 23:07:46 +0200 fix: friend mutation observer Diffstat:
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/common/src/main/assets/lang/en_US.json b/common/src/main/assets/lang/en_US.json @@ -1115,7 +1115,7 @@ "conversation_read": "Mark conversation as read when sending a message", "snap_reply": "Mark snaps as read when replying to them" }, - "friend_mutation_observer": { + "friend_mutation_notifier": { "remove_friend": "Notify when someone removes you as a friend", "birthday_changes": "Notify when someone changes their birthday", "bitmoji_selfie_changes": "Notify when someone changes their Bitmoji selfie", diff --git a/common/src/main/kotlin/me/rhunk/snapenhance/common/config/impl/MessagingTweaks.kt b/common/src/main/kotlin/me/rhunk/snapenhance/common/config/impl/MessagingTweaks.kt @@ -73,7 +73,7 @@ class MessagingTweaks : ConfigContainer() { nativeHooks() } val instantDelete = boolean("instant_delete") { requireRestart() } - val friendMutationObserver = multiple("friend_mutation_observer", + val friendMutationNotifier = multiple("friend_mutation_notifier", "remove_friend", "birthday_changes", "bitmoji_selfie_changes", diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/FriendMutationObserver.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/FriendMutationObserver.kt @@ -73,7 +73,7 @@ class FriendMutationObserver: Feature("FriendMutationObserver", loadParams = Fea } override fun init() { - val config by context.config.messaging.friendMutationObserver + val config by context.config.messaging.friendMutationNotifier context.event.subscribe(NetworkApiRequestEvent::class) { event -> if (!event.url.contains("ami/friends")) return@subscribe