feat: revert friend source spoof

This commit is contained in:
rhunk 2024-05-29 15:03:58 +02:00
parent 420c02af64
commit 2a8f60c773
3 changed files with 7 additions and 1 deletions

View File

@ -1197,7 +1197,8 @@
"added_by_mention": "By Mention",
"added_by_group_chat": "By Group Chat",
"added_by_qr_code": "By QR Code",
"added_by_community": "By Community"
"added_by_community": "By Community",
"added_by_quick_add": "By Quick Add (high risk of being banned)"
},
"bypass_video_length_restriction": {
"single": "Single media",

View File

@ -58,6 +58,7 @@ class Experimental : ConfigContainer() {
"added_by_group_chat",
"added_by_qr_code",
"added_by_community",
"added_by_quick_add",
) { addNotices(FeatureNotice.BAN_RISK) }
val preventForcedLogout = boolean("prevent_forced_logout") { requireRestart(); addNotices(FeatureNotice.BAN_RISK, FeatureNotice.INTERNAL_BEHAVIOR); }
}

View File

@ -58,6 +58,10 @@ class AddFriendSourceSpoof : Feature("AddFriendSourceSpoof", loadParams = Featur
setPage("profile")
setSource(FriendAddSource.COMMUNITY)
}
"added_by_quick_add" -> {
setPage("add_friends_button_on_top_bar_on_friends_feed")
setSource(FriendAddSource.SUGGESTED)
}
}
}
}