getMessageHaveReadStatus method

Future<bool> getMessageHaveReadStatus ({@required dynamic target, @required String msgId })

Implementation

Future<bool> getMessageHaveReadStatus({
  @required dynamic target, /// (JMSingle | JMGroup)
  @required String msgId,
}) async {
  print(flutter_log + "getMessageHaveReadStatus" + " msgid = $msgId");

  if (msgId == null || msgId.length == 0 || target == null) {
    return false;
  }

  Map param = target.toJson();
  param["id"] = msgId;
  bool isSuccess = await _channel.invokeMethod('getMessageHaveReadStatus', param..removeWhere((key,value) => value == null));

  return isSuccess;
}