Add to check the channel when delete all 54/225754/1
authormk5004.lee <mk5004.lee@samsung.com>
Mon, 24 Feb 2020 09:06:40 +0000 (18:06 +0900)
committermk5004.lee <mk5004.lee@samsung.com>
Mon, 24 Feb 2020 09:07:51 +0000 (18:07 +0900)
Change-Id: Ia76a79417dd5df9fe8cc02f470b3c485b227236a
Signed-off-by: mk5004.lee <mk5004.lee@samsung.com>
src/notification_ex_service.cc

index d4c1bcf..1982098 100644 (file)
@@ -366,7 +366,7 @@ class DPMReporter : public Reporter {
     DBG("Delete !!!");
     if (info.GetEventType() == IEventInfo::EventType::DeleteAll) {
       list<shared_ptr<item::AbstractItem>> noti_list =
-          DBManager::GetNotificationList(facade_->GetUid(info));
+          DBManager::GetNotificationList(facade_->GetUid(info), info.GetChannel());
       for (auto& i : noti_list) {
         DoDelete(info, i);
       }
@@ -598,10 +598,10 @@ class DPMManager : public Manager {
     DBG("Delete !!!");
     if (info.GetEventType() == IEventInfo::EventType::DeleteAll) {
       list<shared_ptr<item::AbstractItem>> noti_list =
-          DBManager::GetNotificationList(info.GetOwner(), facade_->GetUid(info));
-      for (auto& i : noti_list) {
+          DBManager::GetNotificationList(info.GetOwner(), facade_->GetUid(info),
+              info.GetChannel());
+      for (auto& i : noti_list)
         DoDelete(info, i);
-      }
       facade_->LaunchDefaultViewer(noti_list, NOTIFICATION_OP_DELETE_ALL);
     } else {
       int ret = DoDelete(info, deletedItem);