checkIfRoomIdExists method

Future<bool> checkIfRoomIdExists(
  1. String roomId
)

Implementation

Future<bool> checkIfRoomIdExists(String roomId) async {
  var result = await V2TIMManager()
      .getGroupManager()
      .getGroupsInfo(groupIDList: [roomId]);
  if (result.data?.first.resultCode == 0) {
    return true;
  } else {
    return false;
  }
}