refactor(core): remove simple snapchat

Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>
This commit is contained in:
rhunk
2025-08-01 15:59:10 +02:00
parent 4e60b01dd0
commit 93358d97f4
3 changed files with 2 additions and 16 deletions

View File

@@ -31,22 +31,17 @@ class ClientBootstrapOverride: Feature("ClientBootstrapOverride") {
}
val homeTab = bootstrapOverrideConfig.homeTab.getNullable()
val simpleSnapchat = bootstrapOverrideConfig.simpleSnapchat.getNullable()
if (homeTab != null || simpleSnapchat != null) {
if (homeTab != null) {
val plusFileBytes = plusFile.exists().let { if (it) plusFile.readBytes() else ProtoWriter().toByteArray() }
plusFile.writeBytes(
ProtoEditor(plusFileBytes).apply {
edit {
homeTab?.let { currentTab ->
homeTab.let { currentTab ->
remove(1)
addVarInt(1, UserInterfaceTweaks.BootstrapOverride.tabs.indexOf(currentTab) + 1)
}
simpleSnapchat?.let { simpleSnapchat ->
remove(2)
addVarInt(2, if (simpleSnapchat == "always_enabled") 1 else 0)
}
}
}.toByteArray()
)