Merge pull request #725 from meshtastic/update_callsign_length

Only allow 6 characters for call sign
This commit is contained in:
Garth Vander Houwen 2024-06-27 07:46:40 -07:00 committed by GitHub
commit 2bc48b1c60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,7 +51,7 @@ struct UserConfig: View {
.onChange(of: longName, perform: { _ in
let totalBytes = longName.utf8.count
// Only mess with the value if it is too big
if totalBytes > (isLicensed ? 8 : 36) {
if totalBytes > (isLicensed ? 6 : 36) {
longName = String(longName.dropLast())
}
})