refactor: set random PSK on default channel name change

This commit is contained in:
andrekir committed 2023-10-01 11:05:42 -03:00
1 parent a10fe75f64
commit e02ecaec6e
1 file changed
+1 -1
@@ -87,7 +87,7 @@ fun EditChannelDialog(
keyboardActions = KeyboardActions(onDone = { }),
onValueChanged = {
nameInput = it
getRandomKey()
if (pskInput == Channel.default.settings.psk) getRandomKey()
},
onFocusChanged = { isFocused = it.isFocused },
)