refactor(ui): Simplify composable message handling in dialog (#4573)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2026-02-16 18:34:15 -06:00 committed by GitHub
parent 5d198c7407
commit d374e768b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,14 +207,7 @@ fun MainScreen(uIViewModel: UIViewModel = hiltViewModel(), scanModel: BTScanMode
message = message,
html = state.html,
icon = state.icon,
text = {
val composableMsg = state.composableMessage
if (composableMsg != null) {
composableMsg.Content()
} else {
// message is handled internally by MeshtasticDialog
}
},
text = state.composableMessage?.let { msg -> { msg.Content() } },
confirmText = confirmText,
onConfirm = state.onConfirm,
dismissText = dismissText,