Skip to content

Commit 412ebc8

Browse files
DROID-4244 Vaulrt | Fix untitled case (#2993)
1 parent e10279e commit 412ebc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/com/anytypeio/anytype/ui/vault/VaultDataSpaceChatCard.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ fun VaultDataSpaceChatCard(
108108
modifier = Modifier
109109
.fillMaxWidth()
110110
.padding(start = 12.dp),
111-
title = title,
111+
title = title.ifEmpty { stringResource(id = R.string.untitled) },
112112
chatName = chatName,
113113
creatorName = creatorName,
114114
messageText = messageText,
@@ -199,7 +199,7 @@ private fun ContentDataSpaceChat(
199199
verticalAlignment = Alignment.CenterVertically
200200
) {
201201
Text(
202-
text = chatName,
202+
text = chatName.ifEmpty { stringResource(id = R.string.untitled) },
203203
style = CodeChatPreviewMedium,
204204
color = getChatTextColor(
205205
notificationMode = spaceNotificationState,

0 commit comments

Comments
 (0)