fix(#218): fallback to Untitled for empty or blank session titles (#244)

This commit is contained in:
M57
2026-06-21 19:13:09 +03:00
committed by GitHub
parent 57c3e468df
commit abe9e0e284
@@ -100,7 +100,9 @@ fun SessionsScreen(
modifier = Modifier.padding(spacing.md),
) {
Text(
text = session.title ?: stringResource(R.string.history_untitled),
text =
session.title?.takeIf { it.isNotBlank() }
?: stringResource(R.string.history_untitled),
style = MaterialTheme.typography.titleMedium,
fontWeight = FontWeight.Bold,
)