diff --git a/common/src/main/assets/lang/en_US.json b/common/src/main/assets/lang/en_US.json index f039ebe2..7d8bcb8e 100644 --- a/common/src/main/assets/lang/en_US.json +++ b/common/src/main/assets/lang/en_US.json @@ -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", diff --git a/common/src/main/kotlin/me/rhunk/snapenhance/common/config/impl/Experimental.kt b/common/src/main/kotlin/me/rhunk/snapenhance/common/config/impl/Experimental.kt index 9947d432..308f97d3 100644 --- a/common/src/main/kotlin/me/rhunk/snapenhance/common/config/impl/Experimental.kt +++ b/common/src/main/kotlin/me/rhunk/snapenhance/common/config/impl/Experimental.kt @@ -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); } } \ No newline at end of file diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/AddFriendSourceSpoof.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/AddFriendSourceSpoof.kt index e9d905df..bda491ec 100644 --- a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/AddFriendSourceSpoof.kt +++ b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/experiments/AddFriendSourceSpoof.kt @@ -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) + } } } }