ListChannelMessagesAsync returns empty array after sending a direct chat message

Details:

The WriteChatMessageAsync method successfully sends a message to a direct chat. The server responds correctly with details such as message_id and channel_id. However, when calling ListChannelMessagesAsync for the same channel, it returns an empty array.

Env:

Client SDK: Unity SDK

Hello @vladislav-chunikhin,

Was the chat joined with the persist option to true? Otherwise the messages in the channel are ephemeral and won’t be persisted.

See here: Real-time Chat - Heroic Labs Documentation

Hope this clarifies.

1 Like

@sesposito Thank you! It works