queryHistoryMessage method

Future<Map> queryHistoryMessage(
  1. String conversationID,
  2. int conversationType,
  3. dynamic config
)

Implementation

Future<Map<dynamic, dynamic>> queryHistoryMessage(
    String conversationID, int conversationType, dynamic config) async {
  Object _config = mapToJSObj(config);

  final result = await promiseToFuture(ZIM
          .getInstance()!
          .queryHistoryMessage(conversationID, conversationType, _config))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  final resultMap = jsObjectToMap(result);

  return resultMap;
}