Кэш чатов

This commit is contained in:
Халимов Рустам
2026-04-20 00:25:40 +03:00
parent 945134f029
commit 7c66e1c0c0
35 changed files with 2131 additions and 92 deletions
@@ -37,7 +37,7 @@ fun HorizontalDividerComponent(
fun ChatListScreen(
viewModel: ChatListViewModel,
storyViewModel: StoryViewModel,
onChatClick: (String) -> Unit,
onChatClick: (String, String) -> Unit,
onStoryClick: (Int) -> Unit
) {
val state by viewModel.state.collectAsState()
@@ -112,7 +112,7 @@ fun ChatListScreen(
}
} else {
items(state.chats) { chat ->
ChatItem(chat = chat, onClick = onChatClick)
ChatItem(chat = chat, onClick = { onChatClick(chat.id, chat.name) })
HorizontalDividerComponent(
modifier = Modifier.padding(horizontal = 16.dp),
thickness = 0.5.dp,