mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-06-13 05:37:48 +02:00
feat(core/add_friend_spoof_spoof): added by quick add
This commit is contained in:
@ -674,6 +674,7 @@
|
|||||||
"spotlight": "Spotlight"
|
"spotlight": "Spotlight"
|
||||||
},
|
},
|
||||||
"add_friend_source_spoof": {
|
"add_friend_source_spoof": {
|
||||||
|
"added_by_quick_add": "By Quick Add",
|
||||||
"added_by_username": "By Username",
|
"added_by_username": "By Username",
|
||||||
"added_by_mention": "By Mention",
|
"added_by_mention": "By Mention",
|
||||||
"added_by_group_chat": "By Group Chat",
|
"added_by_group_chat": "By Group Chat",
|
||||||
|
@ -24,6 +24,7 @@ class Experimental : ConfigContainer() {
|
|||||||
requireRestart()
|
requireRestart()
|
||||||
}
|
}
|
||||||
val addFriendSourceSpoof = unique("add_friend_source_spoof",
|
val addFriendSourceSpoof = unique("add_friend_source_spoof",
|
||||||
|
"added_by_quick_add",
|
||||||
"added_by_username",
|
"added_by_username",
|
||||||
"added_by_mention",
|
"added_by_mention",
|
||||||
"added_by_group_chat",
|
"added_by_group_chat",
|
||||||
|
@ -23,6 +23,11 @@ class AddFriendSourceSpoof : Feature("AddFriendSourceSpoof", loadParams = Featur
|
|||||||
}
|
}
|
||||||
|
|
||||||
when (spoofedSource) {
|
when (spoofedSource) {
|
||||||
|
"added_by_quick_add" -> {
|
||||||
|
setEnum(1, "PROFILE")
|
||||||
|
setEnum(2, "ADD_FRIENDS_BUTTON_ON_TOP_BAR_ON_FRIENDS_FEED")
|
||||||
|
setEnum(3, "ADDED_BY_SUGGESTED")
|
||||||
|
}
|
||||||
"added_by_group_chat" -> {
|
"added_by_group_chat" -> {
|
||||||
setEnum(1, "PROFILE")
|
setEnum(1, "PROFILE")
|
||||||
setEnum(2, "GROUP_PROFILE")
|
setEnum(2, "GROUP_PROFILE")
|
||||||
|
Reference in New Issue
Block a user