refactor: set random PSK on default channel name change

This commit is contained in:
andrekir
2023-10-01 11:05:42 -03:00
parent a10fe75f64
commit e02ecaec6e

View File

@@ -87,7 +87,7 @@ fun EditChannelDialog(
keyboardActions = KeyboardActions(onDone = { }),
onValueChanged = {
nameInput = it
getRandomKey()
if (pskInput == Channel.default.settings.psk) getRandomKey()
},
onFocusChanged = { isFocused = it.isFocused },
)