We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e10279e commit 412ebc8Copy full SHA for 412ebc8
app/src/main/java/com/anytypeio/anytype/ui/vault/VaultDataSpaceChatCard.kt
@@ -108,7 +108,7 @@ fun VaultDataSpaceChatCard(
108
modifier = Modifier
109
.fillMaxWidth()
110
.padding(start = 12.dp),
111
- title = title,
+ title = title.ifEmpty { stringResource(id = R.string.untitled) },
112
chatName = chatName,
113
creatorName = creatorName,
114
messageText = messageText,
@@ -199,7 +199,7 @@ private fun ContentDataSpaceChat(
199
verticalAlignment = Alignment.CenterVertically
200
) {
201
Text(
202
- text = chatName,
+ text = chatName.ifEmpty { stringResource(id = R.string.untitled) },
203
style = CodeChatPreviewMedium,
204
color = getChatTextColor(
205
notificationMode = spaceNotificationState,
0 commit comments