From d906d533ed008b782fcd6640b7808dc086e32a2b Mon Sep 17 00:00:00 2001 From: songbao1 Date: Mon, 5 May 2025 17:47:58 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E4=BB=A3=E7=90=86=E4=B8=8D?= =?UTF-8?q?=E5=8F=97=E7=AE=A1=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: songbao1 --- services/ans/src/advanced_notification_publish_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ans/src/advanced_notification_publish_service.cpp b/services/ans/src/advanced_notification_publish_service.cpp index 63624547c..9b158f0d4 100644 --- a/services/ans/src/advanced_notification_publish_service.cpp +++ b/services/ans/src/advanced_notification_publish_service.cpp @@ -2617,7 +2617,7 @@ ErrCode AdvancedNotificationService::PublishNotificationBySa(const sptrsubmit_h([&]() { - if (!bundle.empty() && IsDisableNotification(bundle)) { + if (!request->IsAgentNotification() && !bundle.empty() && IsDisableNotification(bundle)) { ANS_LOGE("bundle in Disable Notification list, bundleName=%{public}s", bundle.c_str()); result = ERR_ANS_REJECTED_WITH_DISABLE_NOTIFICATION; return; -- Gitee