openim-sdk-core icon indicating copy to clipboard operation
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.

Open MyCupOfTeaOo opened this issue 2 years ago • 5 comments

What happened?

image 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)?

  1. clearing the sqllite cache
  2. open a group session
  3. 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

MyCupOfTeaOo avatar Jul 28 '23 09:07 MyCupOfTeaOo

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.

FGadvancer avatar Nov 20 '23 08:11 FGadvancer