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

This commit is contained in:
M57 authored and GitHub committed 2026-06-21 19:13:09 +03:00
1 parent 57c3e468df
commit abe9e0e284
1 file changed
+3 -1
@@ -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,
)