Query a conversation
Introduction
ZIM supports querying detailed information of a conversation by specifying the conversation ID.
Procedures
After the login, a user can use the queryConversation interface to specify the conversation ID and conversation type to get detailed information about the corresponding conversation, including the conversation name, unread count, and notification status.
Untitled
// Query conversation information
[[ZIM getInstance] queryConversation:@"targetConversationID" conversationType:ZIMConversationTypePeer callback:^(ZIMConversation * _Nonnull conversation, ZIMError * _Nonnull errorInfo) {
// Callback for the result of the query conversation operation
if (errorInfo.code == ZIMErrorCodeSuccessS) {
} else {
// You can print the error code and error message to troubleshoot the error cause, referring to the ZIM official website error code documentation
}
}];
1