markC2CMessageAsRead method

  1. @override
Future<V2TimCallback> markC2CMessageAsRead({
  1. required String userID,
})
override

设置单聊消息已读

Implementation

@override
Future<V2TimCallback> markC2CMessageAsRead({
  required String userID,
}) async {
  Map<String, dynamic> param = {
    "userID": userID,
  };
  var resp = V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "markC2CMessageAsRead",
        buildMessageMangerParam(
          param,
        ),
      ),
    ),
  );
  log("markC2CMessageAsRead", param, resp.toLogString());
  return resp;
}