android, desktop: chat view previews show their sample messages (#7914)

* android, desktop: chat view previews show their sample messages

* ci: references of the chat view preview snapshots
This commit is contained in:
Evgeny @ SimpleX Chat authored and GitHub committed 2026-10-28 07:45:07 +00:00
1 parent 70b9cf66f4
commit 03ba484f11
5 files changed
+7 -7

No files matched your search

@@ -3863,7 +3863,7 @@ fun PreviewChatLayout() {
ChatItem.getSampleData(
2, CIDirection.DirectRcv(), previewDate, "hello"
),
ChatItem.getDeletedContentSampleData(3),
ChatItem.getDeletedContentSampleData(3, ts = previewDate),
ChatItem.getSampleData(
4, CIDirection.DirectSnd(), previewDate, "hello"
),
@@ -3877,7 +3877,7 @@ fun PreviewChatLayout() {
val unreadCount = remember { mutableStateOf(chatItems.count { it.isRcvNew }) }
val searchValue = remember { mutableStateOf("") }
ChatLayout(
chatsCtx = ChatModel.ChatsContext(secondaryContextFilter = null),
chatsCtx = remember { ChatModel.ChatsContext(secondaryContextFilter = null).also { it.chatItems.replaceAll(chatItems) } },
remoteHostId = remember { mutableStateOf(null) },
chat = remember { mutableStateOf(Chat.sampleData) },
unreadCount = unreadCount,
@@ -3889,7 +3889,7 @@ fun PreviewChatLayout() {
searchValue,
useLinkPreviews = true,
linkMode = SimplexLinkMode.DESCRIPTION,
selectedChatItems = remember { mutableStateOf(setOf()) },
selectedChatItems = remember { mutableStateOf(null) },
back = {},
info = {},
showReports = {},
@@ -3946,7 +3946,7 @@ fun PreviewGroupChatLayout() {
ChatItem.getSampleData(
2, CIDirection.GroupRcv(GroupMember.sampleData), previewDate, "hello"
),
ChatItem.getDeletedContentSampleData(3),
ChatItem.getDeletedContentSampleData(3, CIDirection.GroupRcv(GroupMember.sampleData), previewDate),
ChatItem.getSampleData(
4, CIDirection.GroupRcv(GroupMember.sampleData), previewDate, "hello"
),
@@ -3960,9 +3960,9 @@ fun PreviewGroupChatLayout() {
val unreadCount = remember { mutableStateOf(chatItems.count { it.isRcvNew }) }
val searchValue = remember { mutableStateOf("") }
ChatLayout(
chatsCtx = ChatModel.ChatsContext(secondaryContextFilter = null),
chatsCtx = remember { ChatModel.ChatsContext(secondaryContextFilter = null).also { it.chatItems.replaceAll(chatItems) } },
remoteHostId = remember { mutableStateOf(null) },
chat = remember { mutableStateOf(Chat.sampleData) },
chat = remember { mutableStateOf(Chat.sampleData.copy(chatInfo = ChatInfo.Group.sampleData)) },
unreadCount = unreadCount,
composeState = remember { mutableStateOf(ComposeState(useLinkPreviews = true)) },
composeView = { _ -> },
@@ -3972,7 +3972,7 @@ fun PreviewGroupChatLayout() {
searchValue,
useLinkPreviews = true,
linkMode = SimplexLinkMode.DESCRIPTION,
selectedChatItems = remember { mutableStateOf(setOf()) },
selectedChatItems = remember { mutableStateOf(null) },
back = {},
info = {},
showReports = {},
Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.6 KiB

After

Width:  |  Height:  |  Size: 22 KiB