mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-28 20:29:53 +00:00
initial chat items
This commit is contained in:
parent
916ff04d78
commit
058335d5e1
1 changed files with 9 additions and 0 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue