openim-sdk-core
openim-sdk-core copied to clipboard
Bug: After clearing the sqllite cache, loading the chat history for the first time when opening a group session will trigger 100% of the loaded history messages to return an incorrect value.
What happened?
use sdk getAdvancedHistoryMessageList interface
isEnd is false when all history message is loaded
What did you expect to happen?
isEnd is false when no history message
How can we reproduce it (as minimally and precisely as possible)?
- clearing the sqllite cache
- open a group session
- call getAdvancedHistoryMessageList
Anything else we need to know?
No response
version
wasm v3.0.0 server v3.0.0
Cloud provider
OS version
```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here
# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```
Install tools
Due to the involvement of backend server fixes related to message fetching logic, this issue will be fixed in a later version. In the meantime, you can determine whether you have reached the end of messages by checking if the number of messages fetched in a page is zero.