fix: friend mutation observer
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user