mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-09-30 10:48:08 +03:00
feat: hide country toggle
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user