Monitor Conversation Synchronization Status
Each time the IMLib SDK successfully connects to the IM service, it automatically retrieves the ultra group conversation list and messages from the server.
By setting up an ultra group conversation synchronization listener, you can receive notifications when the ultra group conversation list and the last message of each conversation have finished synchronizing. This enables you to perform various business operations, such as refreshing the UI interface.
Set Up Ultra Group Conversation Synchronization Listener
tip
- The IMLib SDK has supported this callback interface since version 5.2.2.
- After initializing the IMLib SDK but before connecting to IM, call the
setUltraGroupConversationDelegate:method to add a channel change delegate:
[[RCChannelClient sharedChannelManager] setUltraGroupConversationDelegate:self];
- Implement the
ultraGroupConversationListDidSyncmethod. The IMLib SDK will call this method when the ultra group conversation list and the last message of each conversation have finished synchronizing:
// Ultra group conversation list and last message synchronization completed
- (void)ultraGroupConversationListDidSync;