From dd2b5cfe7cd3ee00cc35adb4fa6d0bb5d54ae314 Mon Sep 17 00:00:00 2001 From: dongqingran Date: Wed, 2 Jul 2025 09:48:39 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20'Pull=20Request=20!2024=20?= =?UTF-8?q?:=20ANS=E7=9A=84=E6=8E=A5=E5=8F=A3publish=E9=87=8C=E5=AD=97?= =?UTF-8?q?=E6=AE=B5actionButtons=EF=BC=8Ctitle=E5=B1=9E=E6=80=A7=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E4=B8=BA=E7=A9=BA'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yangjun --- frameworks/js/napi/src/common_convert_request.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/frameworks/js/napi/src/common_convert_request.cpp b/frameworks/js/napi/src/common_convert_request.cpp index 0ad27f935..480992f3d 100644 --- a/frameworks/js/napi/src/common_convert_request.cpp +++ b/frameworks/js/napi/src/common_convert_request.cpp @@ -1846,12 +1846,6 @@ napi_value Common::GetNotificationActionButtonsDetailedBasicInfo( } NAPI_CALL(env, napi_get_value_string_utf8(env, value, str, STR_MAX_SIZE - 1, &strLen)); title = str; - if (title.empty()) { - ANS_LOGE("Property title in actionButton cannot be empty, but get an empty title in publish process."); - std::string msg = "Incorrect parameter types.The content of property title in actionButton cannot be empty."; - Common::NapiThrow(env, ERROR_PARAM_INVALID, msg); - return nullptr; - } // wantAgent: WantAgent NAPI_CALL(env, napi_has_named_property(env, actionButton, "wantAgent", &hasProperty)); -- Gitee