This commit is contained in:
Diogo 2024-11-04 10:28:55 +00:00
parent bfac8bd58a
commit 0a22706d01
2 changed files with 2 additions and 0 deletions

View file

@ -66,6 +66,7 @@ object ChatModel {
// current chat
val chatId = mutableStateOf<String?>(null)
val chatItems = mutableStateOf(SnapshotStateList<ChatItem>())
// chatItemId, SectionArea
val chatItemsSectionArea = mutableMapOf<Long, ChatSectionArea>()
// rhId, chatId
val deletedChats = mutableStateOf<List<Pair<Long?, String>>>(emptyList())

View file

@ -25,6 +25,7 @@ data class ChatSectionAreaBoundary (
data class ChatSection (
val items: MutableList<SectionItems>,
val boundary: ChatSectionAreaBoundary,
// chatItemId, index in rendered LazyColumn
val itemPositions: MutableMap<Long, Int>
)