mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-13 22:18:05 +00:00
initial chat items
This commit is contained in:
1 parent
916ff04d78
commit
058335d5e1
1 file changed
+9
@@ -38,6 +38,15 @@ fetchLatest()
|
||||
fetchLast()
|
||||
```
|
||||
|
||||
|
||||
```haskell
|
||||
-- Chat command
|
||||
APIGetInitialChatItems ChatRef
|
||||
|
||||
-- Chat result
|
||||
CRInitialChatItems {user :: User, latestChatItems :: [AChatItem], unreadChatItems :: [AChatItem]}
|
||||
```
|
||||
|
||||
### 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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user