initial chat items

This commit is contained in:
Diogo 2024-10-08 10:23:03 +01:00
parent 916ff04d78
commit 058335d5e1

View file

@ -38,6 +38,15 @@ fetchLatest()
fetchLast() fetchLast()
``` ```
```haskell
-- Chat command
APIGetInitialChatItems ChatRef
-- Chat result
CRInitialChatItems {user :: User, latestChatItems :: [AChatItem], unreadChatItems :: [AChatItem]}
```
### Option 1 ### Option 1
Keep single instance of `chatItems` representing the current scrollable chat area. The entire array is cleared and replaced during long-distance navigation, and items are appended or prepended as needed during scroll. Keep single instance of `chatItems` representing the current scrollable chat area. The entire array is cleared and replaced during long-distance navigation, and items are appended or prepended as needed during scroll.