Skip to main content

Manage Offline Message Storage Configuration

The IM service supports modifying the offline message configuration at the App level.

Note

Offline message configuration is only applicable to one-to-one and group chats. Chatrooms and ultra groups do not support offline messages due to their business characteristics, so there is no offline message configuration for them.

Understanding Offline Messages

Offline messages? refer to messages received when a user is offline. The RC server automatically retains messages received during the offline period for users, with a default retention period of 7 days. If the client goes online within 7 days, the server will directly send the offline messages to the receiving end. If the client does not go online within 7 days, the server will discard the expired messages.

Not all conversation types support offline messages in the IM service:

  • Offline messages supported: One-to-one chat, group chat, system messages
  • Offline messages not supported: Chatroom, ultra group

App-Level Offline Message Configuration

You can modify the following App-level offline message storage settings:

  • Offline message storage duration. You can modify the storage duration in the RC Console by navigating to Configuration > Chat settings > Basic features > One-to-One and Group Chat > Set Offline Message Storage Duration. Messages received by the target user while offline will be saved to the offline messages, with a default storage duration of 7 days. The user will receive these messages upon the next login. If needed, you can adjust this setting here, with a range of 1 to 7 days. This setting is only effective for one-to-one chat, group chat, and system message conversation types.
  • Group offline message storage duration. When the target user is offline, group messages received will be stored in offline messages, with a default storage duration of 7 days. The user can retrieve these messages upon the next login. If this item is not configured, the group's offline message storage duration will be controlled by the "Set Offline Message Storage Duration" setting. If this item is configured, the offline storage duration for group messages will be based on this configuration.
  • Group offline message storage quantity. By default, all group messages within 7 days are stored, and you can submit a ticket to modify this. Configuration changes will affect all group chat sessions under the App.