mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
limit channel names to 11 characters
This commit is contained in:
parent
60f7f98748
commit
501b05ca59
2 changed files with 3 additions and 2 deletions
|
|
@ -316,7 +316,7 @@ class ChannelFragment : ScreenFragment("Channel"), Logging {
|
|||
val random = SecureRandom()
|
||||
val bytes = ByteArray(32)
|
||||
random.nextBytes(bytes)
|
||||
newSettings.name = newName
|
||||
newSettings.name = newName.take(11)
|
||||
newSettings.psk = ByteString.copyFrom(bytes)
|
||||
} else {
|
||||
debug("Switching back to default channel")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue