fix: friend mutation observer

This commit is contained in:
rhunk
2024-04-19 23:07:46 +02:00
parent 95eb4e89f6
commit 292ca926d4
3 changed files with 3 additions and 3 deletions

View File

@@ -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",

View File

@@ -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",

View File

@@ -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