setOfflineMessageDuration

public abstract void setOfflineMessageDuration(int duration, RongIMClient.ResultCallback<Long> callback)

Sets the storage duration of offline messages on the server (in days).

Note: This feature requires the customer to submit a ticket. The client-side method will only take effect after the feature is enabled on the server.

Parameters

duration

The compensation duration for offline messages, ranging from 1 to 7 days.

callback

The callback function