unhideConversation method

void unhideConversation({
  1. String? userID,
  2. String? groupID,
})

Implementation

void unhideConversation({String? userID, String? groupID}) {
  String convID = '';
  if (userID != null && userID.isNotEmpty) {
    convID = 'c2c_$userID';
  } else if (groupID != null && groupID.isNotEmpty) {
    convID = 'group_$groupID';
  }

  if (convID.isNotEmpty && _isConversationHidden(convID)) {
    TencentCloudChat.instance.chatSDKInstance.manager
        .getConversationManager()
        .markConversation(markType: 8, enableMark: false, conversationIDList: [convID]);
  }
}