feat: hide country toggle

This commit is contained in:
Raymond
2026-06-07 00:18:20 -04:00
parent 898939485c
commit 4b5eeadc2b
6 changed files with 20 additions and 2 deletions
@@ -325,5 +325,5 @@ class UserRegistrar(
}
SUCCESS
}
}
}
@@ -63,6 +63,7 @@ class AquaNetUser(
var profileBio: String? = "",
var profilePicture: String? = "",
var optOutOfLeaderboard: Boolean = false,
var hideCountry: Boolean = false,
// Email confirmation
var emailConfirmed: Boolean = false,
@@ -97,7 +98,7 @@ class AquaNetUser(
val publicFields get() = mapOf(
"username" to username,
"displayName" to displayName,
"country" to country,
"country" to if (hideCountry) "" else country,
"regTime" to regTime,
"profileLocation" to profileLocation,
"profileBio" to profileBio,
@@ -264,4 +265,5 @@ class AquaUserServices(
}
fun checkOptOutOfLeaderboard(optOutOfLeaderboard: Str) = optOutOfLeaderboard.toBoolean()
fun checkHideCountry(hideCountry: Str) = hideCountry.toBoolean()
}