Why does the message listener return data that has already been received during re-login?

  • RC IMSDK pulls messages based on timestamps stored in the local cache

  • Check if the local cache was cleared. If so, the SDK re-pulls offline compensation messages and sends them to the business layer via the message listener

  • If you’ve cleared localStorage, only remove keys specific to your project to avoid affecting third-party business logic