allow longer channel names (if you include the # prefix and suffix

This commit is contained in:
Kevin Hester
2021-04-05 15:35:12 +08:00
parent 6c8aab5a43
commit 7bb3511587
3 changed files with 2 additions and 3 deletions

View File

@@ -243,7 +243,7 @@ class ChannelFragment : ScreenFragment("Channel"), Logging {
val random = SecureRandom()
val bytes = ByteArray(32)
random.nextBytes(bytes)
newSettings.name = newName // Only change the name if the user did some editing
newSettings.name = newName
newSettings.psk = ByteString.copyFrom(bytes)
} else {
debug("Switching back to default channel")